Skip to content

Add codecov to the pytest CI #14

Add codecov to the pytest CI

Add codecov to the pytest CI #14

Workflow file for this run

name: pytest
on: pull_request
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh
- name: Set up Python
run: uv python install 3.9
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest tests --cov
- name: Upload results to Codecov
uses: codecov/codecov-action@v4.2.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}