Skip to content

Commit c2d4159

Browse files
authored
Merge pull request #2618 from alicevision/ci/codecov
CI: add codecov
2 parents c93fb3c + 5ea6af6 commit c2d4159

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Install dependencies
4343
run: |
4444
python -m pip install --upgrade pip
45-
pip install flake8 pytest
45+
pip install flake8 pytest pytest-cov
4646
pip install -r requirements.txt -r dev_requirements.txt --timeout 45
4747
- name: Lint with flake8
4848
run: |
@@ -53,6 +53,11 @@ jobs:
5353
- name: Test with pytest
5454
run: |
5555
pytest tests/
56+
pytest --cov --cov-report=xml
57+
- name: Upload results to Codecov
58+
uses: codecov/codecov-action@v5
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
5661

5762
build-windows:
5863
runs-on: windows-latest
@@ -86,4 +91,4 @@ jobs:
8691
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
8792
- name: Test with pytest
8893
run: |
89-
pytest tests/
94+
pytest tests/

0 commit comments

Comments
 (0)