File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments