Skip to content

Firedrake backend: Cofunction interpolation #926

Firedrake backend: Cofunction interpolation

Firedrake backend: Cofunction interpolation #926

Workflow file for this run

name: test-tlm_adjoint-base
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-latest
timeout-minutes: 60
env:
OMP_NUM_THREADS: 1
OPENBLAS_NUM_THREADS: 1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: 'tlm_adjoint'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install flake8 python3-h5py python3-numpy python3-pytest python3-pytest-timeout python3-pytest-xdist python3-scipy python3-sympy
python3 -m venv tlm_adjoint_venv
. tlm_adjoint_venv/bin/activate
python3 -m pip install ruff
- name: Lint
run: |
. tlm_adjoint_venv/bin/activate
cd tlm_adjoint
flake8
ruff check
- name: Run tests
run: |
. tlm_adjoint_venv/bin/activate
cd tlm_adjoint
pytest-3 -v -n 2 --timeout=300 --timeout-method=thread