1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
name: Tests
on: [push, pull_request, workflow_call, workflow_dispatch]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: ☑️ Test with coverage
run: uv run --all-extras pytest --cov-report xml
- name: ☂️ Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
|