-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from mnlevy1981/updateCI
Use github actions for testing
- Loading branch information
Showing
6 changed files
with
52 additions
and
30 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,27 @@ | ||
name: CVMix CI | ||
on: [push, pull_request] | ||
jobs: | ||
CVMix-Testing: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.9 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Load Environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt install make gfortran netcdf-bin libnetcdf-dev libnetcdff-dev openmpi-bin libopenmpi-dev | ||
- name: Run Test Suite | ||
run: | | ||
./reg_tests/common/setup_inputdata.sh | ||
cd bld | ||
./cvmix_setup gfortran $(dirname $(dirname $(which nc-config))) | ||
cd ../CVMix_tools | ||
./run_test_suite.sh --already-ran-setup | ||
cd ../reg_tests/Bryan-Lewis/ | ||
./Bryan-Lewis-test.sh --cmake |
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
#!/bin/bash | ||
#!/bin/bash -e | ||
|
||
check_inputdata () { | ||
|
||
DATA_REPO=https://github.com/CVMix/CVMix-data/trunk/ | ||
|
||
cd ${INPUTDATA_DIR} | ||
ALL_FOUND=TRUE | ||
for file in "$@"; do | ||
echo "Looking for $file..." | ||
if [ -e ${INPUTDATA_DIR}/$file ]; then | ||
if [ -e $file ]; then | ||
echo "Found!" | ||
else | ||
svn export ${DATA_REPO}/$file ${INPUTDATA_DIR}/$file | ||
echo "... Downloaded!" | ||
echo "${file}" >> .git/info/sparse-checkout | ||
ALL_FOUND=FALSE | ||
echo "... added to sparse-checkout!" | ||
fi | ||
done | ||
|
||
} | ||
if [ "${ALL_FOUND}" == "FALSE" ]; then | ||
git checkout master | ||
fi | ||
|
||
} |
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,9 @@ | ||
#!/bin/bash -e | ||
# Since github dropped support for svn hooks, now need to set up | ||
# a sparse checkout to get inputdata. | ||
# NOTE: this script must be run from ${CVMIX_ROOT}! | ||
|
||
cd inputdata | ||
git init | ||
git config core.sparseCheckout true | ||
git remote add -f CVMix-data https://github.com/CVMix/CVMix-data.git |
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