Skip to content

Commit

Permalink
Run only model tests and show log
Browse files Browse the repository at this point in the history
  • Loading branch information
rs028 committed Sep 23, 2023
1 parent b62c9d7 commit 174851c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,27 +127,27 @@ jobs:
FORT_VERSION: ${{ matrix.fortran }}
run: |
export PATH=$PATH:$PWD/numdiff/bin
make unittests
make oldtests # NB: oldtests will eventually be merged into modeltests
#make unittests
#make oldtests # NB: oldtests will eventually be merged into modeltests
make modeltests # NB: modeltests are temporarily deactivated (pass on linux, fail on macos)
# -------------------------------------------------------------
# (5) Recompile AtChem2 using the code coverage flags, then
# upload the gcov files to Codecov

- name: Unit and Model tests (x Codecov)
if: matrix.os == 'ubuntu-22.04' && matrix.fortran == 11
# Set $FORT_VERSION for use with the `Makefile`
env:
FORT_VERSION: ${{ matrix.fortran }}
run: |
export PATH=$PATH:$PWD/numdiff/bin
make clean
make unittests CCOV=true
mv tests/unit_tests/*.gc* ./ # Needed to deal with gcc11 changing the way it handles gcda and gcna files
make modeltests CCOV=true # Run only the new model Testsuite
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
gcov: true
# - name: Unit and Model tests (x Codecov)
# if: matrix.os == 'ubuntu-22.04' && matrix.fortran == 11
# # Set $FORT_VERSION for use with the `Makefile`
# env:
# FORT_VERSION: ${{ matrix.fortran }}
# run: |
# export PATH=$PATH:$PWD/numdiff/bin
# make clean
# make unittests CCOV=true
# mv tests/unit_tests/*.gc* ./ # Needed to deal with gcc11 changing the way it handles gcda and gcna files
# make modeltests CCOV=true # Run only the new model Testsuite

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# gcov: true
2 changes: 1 addition & 1 deletion tests/run_model_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,5 @@ echo "" >> $LOG_FILE
echo "Execution of model tests script finished." >> $LOG_FILE

echo "==> Model tests logfile:" $LOG_FILE

cat $LOG_FILE
exit $model_tests_passed

0 comments on commit 174851c

Please sign in to comment.