Skip to content

Commit bec42a9

Browse files
committed
Switch to Ubuntu packages
1 parent 0fc7f50 commit bec42a9

File tree

2 files changed

+47
-80
lines changed

2 files changed

+47
-80
lines changed

.github/workflows/test-fenics_ice.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

.github/workflows/test-fice.yml

-80
This file was deleted.

0 commit comments

Comments
 (0)