33 lines
744 B
YAML
33 lines
744 B
YAML
name: Python Test CI
|
|
|
|
concurrency:
|
|
group: test-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/test.yml'
|
|
- 'pyproject.toml'
|
|
- 'uv.lock'
|
|
- '.python-version'
|
|
- '**/*.py'
|
|
|
|
jobs:
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
- name: Set up UV
|
|
uses: actions/setup-uv@v1
|
|
- name: Run tests with coverage
|
|
run: uv run coverage run -m unittest -v
|
|
- name: Generate coverage XML report
|
|
run: uv run coverage xml
|
|
- name: Create coverage summary
|
|
uses: actions/code-coverage-summary@v1.3.0
|
|
with:
|
|
filename: coverage.xml
|