Skip to content

Commit

Permalink
Fix macOS CI (#1086)
Browse files Browse the repository at this point in the history
* fix yaml indentation

* add requirements.txt

* install hdf5-mpi

* add performance tests

* install adios2 via homebrew

* run all tests

* exclude MPI tests
  • Loading branch information
BenWibking authored May 24, 2024
1 parent 96832fe commit 8a4baaa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,27 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
cache: 'pip'
cache-dependency-path: '**/requirements.txt'
- run: pip install -r requirements.txt

- name: Install dependencies
run: |
brew install openmpi hdf5-mpi adios2 || true
- name: Configure
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
run: cmake -B build -DCMAKE_BUILD_TYPE=Release

- name: Build
run: cmake --build build
run: cmake --build build

- name: Test
run: |
cd build
ctest -LE 'regression'
- uses: actions/upload-artifact@v3
with:
name: configure-log-unit-macos
path: build/CMakeFiles/CMakeOutput.log
retention-days: 3
run: |
cd build
ctest -LE mpi
- uses: actions/upload-artifact@v3
with:
name: configure-log-unit-macos
path: build/CMakeFiles/CMakeOutput.log
retention-days: 3
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h5py
numpy
matplotlib

0 comments on commit 8a4baaa

Please sign in to comment.