Skip to content

✅ tests: use codecov and change coverage target to 100 #83

✅ tests: use codecov and change coverage target to 100

✅ tests: use codecov and change coverage target to 100 #83

Workflow file for this run

name: Coverage
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
pdm install -d
pdm run pip install pdm-backend
- name: Run tests and coverage
run: |
pdm run cov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: Pyfuture
plugins: pycoverage,compress-pycoverage