-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (47 loc) · 1.37 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Tests
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
standard_tests:
runs-on: ubuntu-latest
env:
OMPI_MCA_rmaps_base_oversubscribe: yes
MPIRUN: mpiexec -np
strategy:
fail-fast: false
matrix:
config:
- name: "Makefiles"
- name: "Makefiles, debug"
gk_system: gnu_ubuntu_debug
- name: "CMake"
steps:
- name: Install dependencies
run: sudo apt update &&
sudo apt install -y
gfortran
make
libfftw3-dev
libnetcdf-dev
libnetcdff-dev
netcdf-bin
python3
python3-pip
openmpi-bin
libopenmpi-dev
- name: System information
run: |
cat /etc/*release
gfortran --version
nf-config --all
- uses: actions/checkout@v2
- name: Install integrated test dependencies
run: pip3 install --user -r tests/integrated/requirements.txt
- name: Build stella (Makefile)
if: ${{ contains(matrix.config.name, 'Makefile') }}
run: ./scripts/ci_build_and_run.sh ${{ matrix.config.gk_system }}
- name: Build stella (CMake)
if: ${{ contains(matrix.config.name, 'CMake') }}
run: ./scripts/ci_cmake_build_and_run.sh