forked from SimVascular/svMultiPhysics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…Vascular#30) - created dockerfiles to build Docker containers with pre-compiled Trilinos and PETSc libraries in Ubuntu-20.04 and Ubuntu-22.04 (addresses issue SimVascular#211) - added test cases for fluid and fsi problems to test Trilinos and PETSc linear solvers and preconditioners - updated the workflow file test_ubuntu.yml to include PETSc and Trilinos tests for continuous integration (CI)
- Loading branch information
Showing
229 changed files
with
7,120 additions
and
837 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: test Ubuntu | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
name: [Ubuntu-20.04, Ubuntu-22.04] | ||
include: | ||
- name: Ubuntu-20.04 | ||
version: ubuntu-20.04 | ||
image: ubuntu20 | ||
- name: Ubuntu-22.04 | ||
version: ubuntu-22.04 | ||
image: ubuntu22 | ||
runs-on: ${{ matrix.version }} | ||
container: dcodoni/lib:${{ matrix.image }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build svFSIplus | ||
run: | | ||
if [ -d "build" ]; then | ||
rm -rf "build" | ||
fi | ||
mkdir build | ||
cd build | ||
cmake -DENABLE_COVERAGE=ON -DENABLE_ARRAY_INDEX_CHECKING=ON -DENABLE_UNIT_TEST=ON -DSV_USE_TRILINOS:BOOL=ON .. | ||
make -j2 | ||
cd .. | ||
- name: Build svFSIplus (PETSc) | ||
run: | | ||
if [ -d "build-petsc" ]; then | ||
rm -rf "build-petsc" | ||
fi | ||
mkdir build-petsc | ||
cd build-petsc | ||
cmake -DENABLE_COVERAGE=ON -DENABLE_ARRAY_INDEX_CHECKING=ON -DENABLE_UNIT_TEST=ON -DSV_PETSC_DIR:STRING=/petsc .. | ||
make -j2 | ||
cd .. | ||
- name: Run integration tests | ||
run: | | ||
git config --global --add safe.directory /__w/svFSIplus/svFSIplus | ||
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 | ||
run: | | ||
cd build/svFSI-build | ||
make coverage | ||
- name: Save coverage report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage_report | ||
path: build/svFSI-build/coverage | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.