testing #744
Workflow file for this run
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
name: compile code and tests | |
on: | |
push: | |
branches: [ melt/issue379_ncgenerator/test-ci ] | |
pull_request: | |
branches: [ main, develop, issue103_CI ] | |
jobs: | |
build-and-tests-on-mac: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: installs | |
run: | | |
brew install netcdf | |
brew install netcdf-cxx | |
brew install boost | |
brew install eigen | |
brew install cmake | |
pip3 install netCDF4 | |
- name: make | |
run: | | |
cmake . | |
make | |
- name: run tests | |
run: | | |
cd core/test | |
for file in $(find test* -maxdepth 0 -type f); do ./$file; done | |
cd - | |
for component in physics | |
do | |
cd $component/test | |
for file in $(find test* -maxdepth 0 -type f); do ./$file; done | |
cd - | |
done |