1
0
Fork 0

Update python-PyCTBN-package.yml

master
lmoretti96 4 years ago committed by GitHub
parent c0b45e4631
commit fa0c336421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      .github/workflows/python-PyCTBN-package.yml

@ -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