Remove some unused classes #931
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-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 |