-
Notifications
You must be signed in to change notification settings - Fork 18
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 #4 from bendudson/github-actions
Move to Github Actions
- Loading branch information
Showing
3 changed files
with
63 additions
and
69 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,62 @@ | ||
name: Tests | ||
on: [push, pull_request] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
standard_tests: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
env: | ||
OMP_NUM_THREADS: ${{ matrix.config.omp_num_threads }} | ||
PYTHONPATH: ${{ github.workspace }}/tools/pylib | ||
OMPI_MCA_rmaps_base_oversubscribe: yes | ||
MPIRUN: mpiexec -np | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- name: "Default options" | ||
os: ubuntu-18.04 | ||
configure_options: "--enable-debug" | ||
|
||
steps: | ||
- name: Job information | ||
run: | | ||
echo Build: ${{ matrix.config.name }}, ${{ matrix.config.os }} | ||
echo Configure options: ${{ matrix.config.configure_options }} | ||
- name: Install dependencies | ||
run: sudo apt update && | ||
sudo apt install -y | ||
libfftw3-dev | ||
libnetcdf-dev | ||
libnetcdf-c++4-dev | ||
netcdf-bin | ||
python3 | ||
python3-pip | ||
python3-pytest | ||
python3-numpy | ||
python3-scipy | ||
openmpi-bin | ||
libopenmpi-dev | ||
liblapack-dev | ||
libparpack2-dev | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Install pip packages | ||
run: | | ||
./.pip_install_for_travis.sh 'netcdf4~=1.5' | ||
# Add the pip install location to the runner's PATH | ||
echo ~/.local/bin >> $GITHUB_PATH | ||
- name: Build and run tests | ||
run: ./.travis_script.sh | ||
env: | ||
LD_LIBRARY_PATH: /home/runner/local/lib:$LD_LIBRARY_PATH | ||
BOUT_CONFIGURE_OPTIONS: ${{ matrix.config.configure_options }} |
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