-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (44 loc) · 1.48 KB
/
test-fenics_ice.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
name: test-fenics_ice
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
OMP_NUM_THREADS: 1
OPENBLAS_NUM_THREADS: 1
steps:
- name: Checkout fenics_ice
uses: actions/checkout@v4
with:
path: 'fenics_ice'
- name: Checkout tlm_adjoint
uses: actions/checkout@v4
with:
repository: 'tlm-adjoint/tlm_adjoint'
path: 'tlm_adjoint'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install python3-dolfin python3-git python3-h5py \
python3-matplotlib python3-netcdf4 python3-numpy python3-pytest \
python3-pytest-dependency python3-pytest-mpi \
python3-pytest-order python3-pytest-timeout python3-scipy \
python3-sympy
- name: Run tests
run: |
export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE/tlm_adjoint
cd fenics_ice
pytest -v --order-scope=module --timeout=300 --timeout-method=thread
pytest -v -k tv --order-scope=module --timeout=300 --timeout-method=thread
mpirun -n 2 pytest -v --order-scope=module --timeout=300 --timeout-method=thread
mpirun -n 2 pytest -m key --key=smith --timeout=300 --timeout-method=thread