Skip to content

fix: update CI and Codecov badge links to point to the main branch #16

fix: update CI and Codecov badge links to point to the main branch

fix: update CI and Codecov badge links to point to the main branch #16

Workflow file for this run

name: CI
on:
pull_request:
branches: [develop]
push:
branches: [develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pdm install -G dev
- name: Verify pytest
run: |
pdm run pytest --version
- name: Run pre-commit
run: |
pdm run pre-commit run --all-files
- name: Run tests
run: |
pdm run pytest --cov --cov-branch --cov-report=xml
- name: Upload coverage
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run linter
run: |
pdm run ruff check .