We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe0c1b7 commit 0a53851Copy full SHA for 0a53851
1 file changed
.github/workflows/codecov.yml
@@ -0,0 +1,30 @@
1
+name: Code Coverage
2
+on: [push, pull_request]
3
+
4
+jobs:
5
+ test:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v4
9
10
+ - name: Set up Python
11
+ uses: actions/setup-python@v4
12
+ with:
13
+ python-version: '3.10'
14
15
+ - name: Install dependencies
16
+ run: |
17
+ pip install pytest pytest-cov
18
19
+ - name: Run tests and generate coverage
20
+ run: pytest --cov=. --cov-report=xml
21
22
+ - name: Upload coverage to Codecov
23
+ uses: codecov/codecov-action@v5
24
25
+ token: ${{ secrets.CODECOV_TOKEN }}
26
+ file: ./coverage.xml
27
+ flags: unittests
28
+ name: codecov-umbrella
29
+ fail_ci_if_error: true
30
+ verbose: true
0 commit comments