Skip to content

Commit

Permalink
[CI] Upload Python HTML coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and bryanwweber committed Aug 11, 2022
1 parent a44908a commit 28ef6f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -170,12 +170,18 @@ jobs:
--exclude-directories '\.sconf_temp' --exclude-directories 'build/ext$' \
--exclude '.*ext.*' --exclude '(.+/)?_cantera\.cpp$' --exclude '^test.*' \
--xml coverage.xml --html-details htmlcoverage.html --txt
- name: Archive code coverage results
- name: Archive C++ coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
name: cxx-coverage-report
path: htmlcoverage*
retention-days: 5
- name: Archive Python coverage results
uses: actions/upload-artifact@v2
with:
name: python-coverage-report
path: build/python-coverage*
retention-days: 5
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion test/python/runCythonTests.py
Expand Up @@ -92,7 +92,8 @@
pytest_args.extend([
"--cov=cantera",
"--cov-config=test/python/coverage.ini",
"--cov-report=xml:build/pycov.xml"
"--cov-report=xml:build/pycov.xml",
"--cov-report=html:build/python-coverage"
])
if verbose:
pytest_args.insert(0, "-v")
Expand Down

0 comments on commit 28ef6f7

Please sign in to comment.