Skip to content

Fix pagination

Fix pagination #39

Workflow file for this run

name: Tests and Coverage
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
env:
ENV: test
TEST_DATABASE_URL: sqlite:///./test.db
PYTHONPATH: .
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Init test database
run: |
python -m app.init_db
- name: Run tests with coverage
run: |
pytest --cov=app --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}