Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Apr 23, 2024
1 parent 4767054 commit dde16f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ jobs:
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
git clone --depth 1 https://github.com/firedrakeproject/checkpoint_schedules.git
python3 -m pip install checkpoint-schedules ruff
- name: Lint
run: |
cd tlm_adjoint
flake8
ruff check
- name: Run tests
run: |
export PYTHONPATH=$PWD/checkpoint_schedules:$PYTHONPATH
cd tlm_adjoint
pytest-3 -v -n 2 --timeout=300 --timeout-method=thread
4 changes: 1 addition & 3 deletions .github/workflows/test-fenics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install flake8 python3-dolfin python3-h5py python3-numpy python3-pytest python3-pytest-timeout python3-pytest-xdist python3-scipy python3-sympy
python3 -m pip install ruff
git clone --depth 1 https://github.com/firedrakeproject/checkpoint_schedules.git
python3 -m pip install checkpoint-schedules ruff
- name: Lint
run: |
cd tlm_adjoint
flake8
ruff check
- name: Run tests
run: |
export PYTHONPATH=$PWD/checkpoint_schedules:$PYTHONPATH
cd tlm_adjoint
pytest-3 -v tests/base tests/checkpoint_schedules tests/fenics -n 2 --timeout=300 --timeout-method=thread

0 comments on commit dde16f0

Please sign in to comment.