File tree 2 files changed +47
-80
lines changed
2 files changed +47
-80
lines changed Original file line number Diff line number Diff line change
1
+ name : test-fenics_ice
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ concurrency :
12
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13
+ cancel-in-progress : true
14
+
15
+ jobs :
16
+ test :
17
+ runs-on : ubuntu-22.04
18
+ timeout-minutes : 60
19
+ env :
20
+ OMP_NUM_THREADS : 1
21
+ OPENBLAS_NUM_THREADS : 1
22
+ steps :
23
+ - name : Checkout fenics_ice
24
+ uses : actions/checkout@v4
25
+ with :
26
+ path : ' fenics_ice'
27
+ - name : Checkout tlm_adjoint
28
+ uses : actions/checkout@v4
29
+ with :
30
+ repository : ' tlm-adjoint/tlm_adjoint'
31
+ path : ' tlm_adjoint'
32
+ - name : Install dependencies
33
+ run : |
34
+ sudo apt-get update
35
+ sudo apt-get install python3-dolfin python3-git python3-h5py \
36
+ python3-matplotlib python3-netcdf4 python3-numpy python3-pytest \
37
+ python3-pytest-dependency python3-pytest-mpi \
38
+ python3-pytest-order python3-pytest-timeout python3-scipy \
39
+ python3-sympy
40
+ - name : Run tests
41
+ run : |
42
+ export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE/tlm_adjoint
43
+ cd fenics_ice
44
+ pytest-3 -v --order-scope=module --timeout=300 --timeout-method=thread
45
+ pytest-3 -v -k tv --order-scope=module --timeout=300 --timeout-method=thread
46
+ mpirun -n 2 pytest-3 -v --order-scope=module --timeout=300 --timeout-method=thread
47
+ mpirun -n 2 pytest-3 -m key --key=smith --timeout=300 --timeout-method=thread
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments