-
Notifications
You must be signed in to change notification settings - Fork 18
64 lines (58 loc) · 1.87 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
54
55
56
57
58
59
60
61
62
63
64
name: Tests
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
cmake_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: "CMake default options"
os: ubuntu-22.04
configure_options: "-DPACKAGE_TESTS=OFF"
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_tests.sh 'netcdf4~=1.5' boutdata boututils
# Add the pip install location to the runner's PATH
echo ~/.local/bin >> $GITHUB_PATH
- name: Build and run tests
run: cmake . -B build $BOUT_CONFIGURE_OPTIONS &&
cmake --build build &&
cd build &&
ctest --output-on-failure --timeout 300
env:
LD_LIBRARY_PATH: /home/runner/local/lib:$LD_LIBRARY_PATH
BOUT_CONFIGURE_OPTIONS: ${{ matrix.config.configure_options }}