Skip to content

Merge pull request #582 from tlm-adjoint/Tidying #839

Merge pull request #582 from tlm-adjoint/Tidying

Merge pull request #582 from tlm-adjoint/Tidying #839

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 pip install ruff
- name: Lint
run: |
cd tlm_adjoint
flake8
ruff check
- name: Run tests
run: |
cd tlm_adjoint
pytest-3 -v -n 2 --timeout=300 --timeout-method=thread