-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try docker container with Ubuntu 22.04
- Loading branch information
1 parent
ebd38ce
commit 25c0a39
Showing
2 changed files
with
51 additions
and
80 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
name: Integration | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
container: msalvad/ubuntu22_vtk9:v1 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Look at Docker image for Ubuntu 22.04 | ||
run: | | ||
cat /etc/os-release | ||
ls | ||
- name: Build svFSIplus | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DENABLE_COVERAGE=ON -DENABLE_ARRAY_INDEX_CHECKING=ON -DENABLE_UNIT_TEST=ON .. | ||
make -j2 | ||
- name: Install test dependencies | ||
run: | | ||
conda create -n svfsiplus python=3.9 | ||
conda run -n svfsiplus pip install pytest pytest-cov pytest-mock numpy meshio pandas | ||
- name: Run integration tests | ||
run: | | ||
git lfs pull | ||
cd tests | ||
conda run -n svfsiplus pytest -rPv --durations=0 | ||
- name: Run unit tests | ||
run: | | ||
cd build/svFSI-build/Source/svFSI | ||
ctest --verbose | ||
- name: Generate code coverage | ||
if: startsWith(matrix.os, 'ubuntu-22.04') | ||
run: | | ||
cd build/svFSI-build | ||
make coverage | ||
- name: Save coverage report | ||
if: startsWith(matrix.os, 'ubuntu-22.04') | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage_report | ||
path: build/svFSI-build/coverage | ||
- name: Upload coverage reports to Codecov | ||
if: startsWith(matrix.os, 'ubuntu-22.04') | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |