-
Notifications
You must be signed in to change notification settings - Fork 5
29 lines (27 loc) · 906 Bytes
/
Copy pathcoverage.yml
File metadata and controls
29 lines (27 loc) · 906 Bytes
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
27
28
29
name: "Coverage"
on: [push]
jobs:
coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.12"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
# Install a specific version of uv.
version: "0.11.28"
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Sync dependencies
run: uv sync --group coverage
- name: Run Tests and Record Coverage
run: |
uv run coverage run -m pytest
uv run coverage html --omit tests/*,generate_or_validate_json_schemas.py,scripts/*
uv run coverage report --fail-under 99 --omit tests/*,generate_or_validate_json_schemas.py,scripts/*