Updates for latest tlm_adjoint #283
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-22.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-h5py python3-pytest-dependency python3-pytest-order python3-numpy python3-pytest python3-pytest-timeout python3-scipy python3-sympy | ||
run: | | ||
export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE/tlm_adjoint | ||
cd fenics_ice | ||
pytest-3 -v --order-scope=module --timeout=300 --timeout-method=thread | ||
mpirun -n 2 pytest-3 -v --order-scope=module --timeout=300 --timeout-method=thread | ||
mpirun -n 2 pytest-3 -m key --key=smith --timeout=300 --timeout-method=thread |