Skip to content

Commit 0a11fea

Browse files
committed
Add codecov
1 parent 98fb2e0 commit 0a11fea

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/test.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ jobs:
1616
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- uses: actions/checkout@v3
20-
- name: Set up Python
21-
uses: actions/setup-python@v4
22-
with:
23-
python-version: 3.12
24-
- name: Install Python dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
pip install -r dev_requirements.txt
29-
- name: Run tests
30-
run: |
31-
pytest
19+
- uses: actions/checkout@v3
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: 3.12
24+
- name: Install Python dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -r dev_requirements.txt
29+
pip install pytest-cov
30+
- name: Run tests
31+
run: |
32+
pytest --cov --cov-branch --cov-report=xml
33+
- name: Upload coverage reports to Codecov
34+
uses: codecov/codecov-action@v5
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)