-
Notifications
You must be signed in to change notification settings - Fork 166
38 lines (32 loc) · 847 Bytes
/
Copy pathcoverage.yml
File metadata and controls
38 lines (32 loc) · 847 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
30
31
32
33
34
35
36
37
38
name: Coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
runs-on: ubuntu-latest
env:
FORCE_COLOR: true
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
uv pip install --group=test . "scikit-learn<1.8.0"
- name: Run tests with coverage
run: |
pytest --cov --cov-report=xml --verbose
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true