[fix] ensure tests run with disabled exceptions #490
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverage | |
defaults: | |
run: | |
# Use a bash shell so we can use the same syntax for environment variable | |
# access regardless of the host operating system | |
shell: bash -e -x {0} | |
on: | |
# https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662 | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
PROJ_PFX_TARGET: ryml- | |
PROJ_PFX_CMAKE: RYML_ | |
CMAKE_FLAGS: -DRYML_TEST_SUITE=ON | |
NUM_JOBS_BUILD: # 4 | |
jobs: | |
#---------------------------------------------------------------------------- | |
coverage: | |
name: coverage/${{matrix.name}} | |
# if: github.ref == 'refs/heads/master' | |
continue-on-error: true | |
if: always() # https://stackoverflow.com/questions/62045967/github-actions-is-there-a-way-to-continue-on-error-while-still-getting-correct | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {name: c++11, std: 11, cxx: g++-9, cc: gcc-9, bt: Coverage, os: ubuntu-20.04} | |
- {name: c++17, std: 17, cxx: g++-9, cc: gcc-9, bt: Coverage, os: ubuntu-20.04} | |
#- {name: c++20, std: 20, cxx: g++-9, cc: gcc-9, bt: Coverage, os: ubuntu-20.04} | |
env: { | |
STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}", VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}", | |
CODECOV_TOKEN: "${{secrets.CODECOV_TOKEN}}", | |
COVERALLS_REPO_TOKEN: "${{secrets.COVERALLS_REPO_TOKEN}}", | |
COVERALLS_PARALLEL: true, | |
} | |
steps: | |
- {name: checkout, uses: actions/checkout@v4, with: {submodules: recursive}} | |
- {name: install requirements, run: source .github/reqs.sh && c4_install_test_requirements $OS} | |
- {name: show info, run: source .github/setenv.sh && c4_show_info} | |
- name: static64-configure--------------------------------------------------- | |
run: source .github/setenv.sh && c4_cfg_test static64 | |
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64} | |
- {name: static64-run, run: source .github/setenv.sh && c4_build_target static64 ryml-coverage} | |
- name: static64-coverage-artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-static64 | |
path: | | |
build/static64/lcov/ | |
build/static64/coverage3-final_filtered.lcov | |
- {name: static64-submit-codecov, run: source .github/setenv.sh && c4_submit_coverage static64 codecov} | |
# coveralls disabled: https://github.com/lemurheavy/coveralls-public/issues/1665 | |
#- {name: static64-submit-coveralls, run: "if [ \"${{matrix.std}}\" == \"17\" ] ; then ( source .github/setenv.sh && c4_submit_coverage static64 coveralls ) ; fi" } | |
- name: static32-configure--------------------------------------------------- | |
run: source .github/setenv.sh && c4_cfg_test static32 | |
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32} | |
- {name: static32-run, run: source .github/setenv.sh && c4_build_target static32 ryml-coverage} | |
- name: static32-coverage-artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-static32-cxx${{matrix.std}} | |
path: | | |
build/static32/lcov | |
build/static32/coverage3-final_filtered.lcov | |
- {name: static32-submit-codecov, run: source .github/setenv.sh && c4_submit_coverage static32 codecov} | |
# coveralls disabled: https://github.com/lemurheavy/coveralls-public/issues/1665 | |
#- {name: static32-submit-coveralls, run: source .github/setenv.sh && c4_submit_coverage static32 coveralls} | |
# coveralls disabled: https://github.com/lemurheavy/coveralls-public/issues/1665 | |
# https://github.com/lemurheavy/coveralls-public/issues/1665 | |
#coveralls_finish: | |
# needs: [coverage] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: coveralls-notify | |
# #continue-on-error: true | |
# uses: coverallsapp/github-action@master | |
# with: | |
# github-token: ${{ secrets.github_token }} | |
# parallel-finished: true | |