Skip to content

add github action for testing coverage and badges to readme #2

add github action for testing coverage and badges to readme

add github action for testing coverage and badges to readme #2

Workflow file for this run

name: CodeCov
on:
push:
branches:
- main
pull_request:
jobs:
run:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v5
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
activate-environment: true
- name: Install dependencies
run: uv pip install -e ".[dev]"
- name: Generate Report
run: uv run pytest --cov=. tests/unit --ignore=tests --cov-branch --cov-report xml:coverage.xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}