Skip to content

ci: dependabot, release-please, coverage, pyright, uv and community f… #20

ci: dependabot, release-please, coverage, pyright, uv and community f…

ci: dependabot, release-please, coverage, pyright, uv and community f… #20

Workflow file for this run

name: Test Pytest
on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up uv and Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install project
run: uv sync --extra test
- name: Run tests with coverage
run: uv run pytest --cov --cov-report=xml --cov-report=term .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: python-${{ matrix.python-version }}
fail_ci_if_error: false