|
|
|
@ -41,3 +41,26 @@ jobs: |
|
|
|
|
- name: Test with pytest |
|
|
|
|
run: | |
|
|
|
|
pytest PyCTBN/tests/ |
|
|
|
|
- name: Generate coverage report |
|
|
|
|
run: | |
|
|
|
|
pip install pytest |
|
|
|
|
pip install pytest-cov |
|
|
|
|
pytest --cov=./PyCTBN/tests/ --cov-report=xml |
|
|
|
|
- name: Upload coverage to Codecov |
|
|
|
|
uses: codecov/codecov-action@v1 |
|
|
|
|
with: |
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
files: ./coverage1.xml,./coverage2.xml |
|
|
|
|
directory: ./coverage/reports/ |
|
|
|
|
flags: unittests |
|
|
|
|
env_vars: OS,PYTHON |
|
|
|
|
name: codecov-umbrella |
|
|
|
|
fail_ci_if_error: true |
|
|
|
|
path_to_write_report: ./coverage/codecov_report.txt |
|
|
|
|
verbose: true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|