-
Notifications
You must be signed in to change notification settings - Fork 14
26 lines (26 loc) · 790 Bytes
/
coverage.yaml
File metadata and controls
26 lines (26 loc) · 790 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
name: Coverage
on: [push, pull_request]
jobs:
cov:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: pip install '.[test]'
- name: Run tests and collect coverage
run: pytest --cov --junitxml=junit.xml -o junit_family=legacy --ignore=test_libraries
- name: Upload coverage to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}