Skip to content

Commit

Permalink
Updated workflows for ubuntu and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoSalvador committed Mar 27, 2024
1 parent 3339e6d commit 90f5afd
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test_macos12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Integration
on: [push, pull_request]
jobs:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Install MacOS dependencies
run: |
brew reinstall -v gcc
brew install -v cmake vtk openblas lapack mesa open-mpi qt
brew install lcov
sudo ln -s /usr/local/opt/qt5/mkspecs /usr/local/mkspecs
sudo ln -s /usr/local/opt/qt5/plugins /usr/local/plugins
- 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
25 changes: 25 additions & 0 deletions .github/workflows/test_ubuntu20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Integration
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
container: msalvad/ubuntu20_vtk9:v1
steps:
- uses: actions/checkout@v3
- name: Build svFSIplus
run: |
mkdir build
cd build
cmake -DENABLE_COVERAGE=ON -DENABLE_ARRAY_INDEX_CHECKING=ON -DENABLE_UNIT_TEST=ON ..
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
4 changes: 0 additions & 4 deletions .github/workflows/test_ubuntu22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ 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: Build svFSIplus
Expand Down

0 comments on commit 90f5afd

Please sign in to comment.