Skip to content

Fix coverage command #39

Fix coverage command

Fix coverage command #39

Workflow file for this run

name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
cd back
pdm install --dev
- name: Run tests
run: |
cd back
pdm run pytest --cov=src/whombat --cov-report=xml -n auto
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
files: back/coverage.xml
fail_ci_if_error: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}