-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split unit test coverage and integration debug builds
- Loading branch information
1 parent
c064c30
commit ba45f76
Showing
2 changed files
with
63 additions
and
36 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Debug Build with Coverage | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop ] # run this on any PR pointing to develop | ||
push: | ||
branches: [ develop ] # also run this on any commit to develop | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
FC: gfortran-13 | ||
Python_REQUIRED_VERSION: 3.12.3 # 3.12.2 not available on Ubuntu 24 GHA | ||
shell: bash | ||
|
||
jobs: | ||
run_debug_coverage: | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
|
||
- name: Set up Python ${{ env.Python_REQUIRED_VERSION }} | ||
id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.Python_REQUIRED_VERSION }} | ||
|
||
- name: Install Dependencies for Linux | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libxkbcommon-x11-0 xorg-dev libgl1-mesa-dev lcov gcovr | ||
# https://github.com/actions/runner-images/issues/10025 | ||
echo "FC=gfortran-13" >> $GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create Build Directory | ||
run: cmake -E make_directory ./build/ | ||
|
||
- name: Configure CMake | ||
working-directory: ./build | ||
run: > | ||
cmake | ||
-G "Unix Makefiles" | ||
-DCMAKE_BUILD_TYPE:STRING=Debug | ||
-DLINK_WITH_PYTHON:BOOL=ON | ||
-DPython_REQUIRED_VERSION:STRING=${{ steps.setup-python.outputs.python-version }} | ||
-DPython_ROOT_DIR:PATH=$RUNNER_TOOL_CACHE/Python/${{ steps.setup-python.outputs.python-version }}/x64/ | ||
-DBUILD_TESTING:BOOL=ON | ||
-DBUILD_FORTRAN:BOOL=ON | ||
-DBUILD_PACKAGE:BOOL=OFF | ||
-DDOCUMENTATION_BUILD:STRING=DoNotBuild | ||
-DENABLE_OPENMP:BOOL=OFF | ||
-DUSE_OpenMP:BOOL=OFF | ||
../ | ||
- name: Build | ||
working-directory: ./build | ||
run: cmake --build . -j 4 | ||
|
||
- name: Run Integration Tests | ||
working-directory: ./build | ||
run: ctest -R "integration.*" |