Skip to content

Commit 12333e7

Browse files
committed
chore: add codecov integration into the project
1 parent 28dd2cf commit 12333e7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/codecov.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Codecov
2+
3+
on: [push]
4+
5+
jobs:
6+
run:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
env:
12+
OS: ${{ matrix.os }}
13+
PYTHON: '3.7'
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Setup Python
17+
uses: actions/setup-python@master
18+
with:
19+
python-version: 3.7
20+
- name: Generate coverage report
21+
run: |
22+
pip install pytest
23+
pip install pytest-cov
24+
pytest --cov=./ --cov-report=xml
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v3
27+
with:
28+
# token: ${{ secrets.CODECOV_TOKEN }}
29+
directory: ./coverage/reports/
30+
env_vars: OS,PYTHON
31+
fail_ci_if_error: true
32+
files: ./coverage1.xml,./coverage2.xml
33+
flags: unittests
34+
name: codecov-umbrella
35+
path_to_write_report: ./coverage/codecov_report.txt
36+
verbose: true

0 commit comments

Comments
 (0)