Skip to content

refactor to ease usage and packaging #42

refactor to ease usage and packaging

refactor to ease usage and packaging #42

Workflow file for this run

name: Run Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
working-directory: ./space2stats_api/src
run: |
python -m pip install --upgrade pip
python -m pip install .["test"]
- name: Run pre-commit
run: |
python -m pip install pre-commit
pre-commit run --all-files
- name: Run tests
working-directory: ./space2stats_api/src
run: python -m pytest -s -vv
env:
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: mydatabase
DB_USER: myuser
DB_PASSWORD: mypassword
DB_TABLE_NAME: space2stats