Other Coverage File Format for CodeCov
@@ -47,13 +47,13 @@ jobs:
## Run Tests
- name: Install Codecov etc.
run: pip install --upgrade pytest pytest-cov codecov
- - name: Run Tests
- run: pytest --cov=braindecode test/
+ - name: Run Tests # See https://stackoverflow.com/a/59959080/1469195 for the cov-report logic
+ run: pytest --cov=braindecode test/ --cov-report term --cov-report xml:coverage.xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
- file: ./junit-results.xml
+ file: ./coverage.xml
path_to_write_report: ./codecov_report.txt
- name: Upload Codecov Coverage report for checking
uses: actions/upload-artifact@v2
