Skip to content

Commit

Permalink
Added code coverage to run_tests github action
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-sitton-inl committed Jul 11, 2024
1 parent 90f9424 commit 130ec84
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ jobs:
uses: actions/checkout@v3
- run: pwd
- run: WD=`(cd ../../.. && pwd)` && export RAVEN_LIBS_NAME="raven_libs_"`basename $WD` && ./initalize_tests.sh
- run: source raven/scripts/establish_conda_env.sh --load && ./run_tests
- name: Archive
- run: source raven/scripts/establish_conda_env.sh --load && ./check_py_coverage.sh
- run: COV_PCT=`coverage report --format=total`
- run: echo "::notice title=Coverage Summary::Code coverage for this repository is now $COV_PCT%. See 'coverage_results' in Artifacts for details."
- name: Archive tests results
uses: actions/upload-artifact@v4
if: always()
with:
name: tests_results
path: tests
- name: Archive coverage results
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage_results
path: tests/coverage_html_report

0 comments on commit 130ec84

Please sign in to comment.