-
Notifications
You must be signed in to change notification settings - Fork 54
54 lines (45 loc) · 1.25 KB
/
test.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
name: Run tests
on:
push:
branches:
- main
- dev
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
case: ["bomex", "benchmark/rico"]
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Install build dependencies
run: |
sudo sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
sudo apt-get update
sudo apt-get install -y cmake libfftw3-dev libhypre-dev libnetcdf-dev libopenmpi-dev libnetcdff-dev
- name: Set up Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=DEBUG -DUSE_FFTW=True ..
- name: Build
run: |
cd build
make -j 2
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run tests
run: |
export DALES=$(find ~+/build/src -maxdepth 1 -name "dales*")
pytest -rf --assert=plain --case=${{ matrix.case }}