We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0c98fc commit 0413572Copy full SHA for 0413572
.github/workflows/build.yml
@@ -19,6 +19,8 @@
19
pytest-in-venv:
20
name: Python tests
21
runs-on: ubuntu-latest
22
+ env:
23
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
24
timeout-minutes: 5
25
26
steps:
@@ -34,5 +36,10 @@
34
36
- name: Install dependencies
35
37
run: pip install -r requirements/requirements-test.txt
38
- - name: Run the tests
- run: pytest
39
+ - name: Run the tests with coverage
40
+ run: pytest --cov=./ --cov-report=xml
41
+
42
+ - name: Upload coverage reports to Codecov
43
+ uses: codecov/codecov-action@v3
44
45
requirements/requirements-test.txt
@@ -1,3 +1,4 @@
1
# Use this for running tests (such as in CI environment)
2
-r requirements.txt
3
pytest
4
+pytest-cov
0 commit comments