Skip to content

Commit

Permalink
More tweaks to make coverage
Browse files Browse the repository at this point in the history
More tweaks to pip-install.yml

Added junit to .gitignore
  • Loading branch information
Rory Barnes committed Sep 6, 2024
1 parent 890178a commit cc482fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pip-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
- os: ubuntu-22.04
python-version: '3.6'
- os: macos-14
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: '3.6'
- os: macos-14
python-version: '3.7'
fail-fast: false

steps:
Expand Down Expand Up @@ -61,8 +63,10 @@ jobs:
exclude:
- os: ubuntu-22.04
python-version: '3.6'
- os: macos-14
python-version: '3.6'
- os: macos-14
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: '3.7'
fail-fast: false

steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ tests/Vspace_Log/Log_Test/
*BP_CreateHDF5*
*BP_Extract*
*BP_Stats*
junit/

coverage.info
.coverage
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ test:
coverage:
rm -f ./gcov/*.gcda ./gcov/*.gcno ./.coverage
mkdir -p ./gcov
gcc -coverage -o ./bin/vplanet src/*.c -lm
python -m pytest --tb=short tests --junitxml=junit/test-results.xml
cd gcov && gcc -coverage -o ./../bin/vplanet ./../src/*.c -lm
pwd
python -m pytest --tb=short tests --junitxml=./junit/test-results.xml
lcov --capture --directory ./gcov --output-file ./.coverage
genhtml ./.coverage --output-directory ./gcov/html

Expand Down

0 comments on commit cc482fa

Please sign in to comment.