Skip to content

Commit

Permalink
CI debugging, a fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Aug 15, 2024
1 parent 2ec034b commit ea63163
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
uses: mxschmitt/action-tmate@v3
with:
detached: true
timeout-minutes: 20
limit-access-to-actor: true
timeout-minutes: 20

- name: Install system dependencies
shell: bash
Expand Down Expand Up @@ -90,16 +90,13 @@ jobs:
working-directory: PyOP2
run: make lint

- name: Check MPI
shell: bash
working-directory: PyOP2
run: mpiexec -n 4 python3 -c "from mpi4py import MPI; print(MPI.COMM_WORLD.rank, MPI.COMM_WORLD.size)"
timeout-minutes: 10

- name: Run tests
shell: bash
working-directory: PyOP2
run: pytest --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v test
run: |
# Running parallel test cases separately works around a bug in pytest-mpi
pytest -k "not parallel" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v test
mpiexec -n 3 pytest -k "parallel[3]" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v test
timeout-minutes: 10

- name: Build documentation
Expand Down

0 comments on commit ea63163

Please sign in to comment.