Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #682 from OP2/JDBetteridge/add_CI_timeout
Browse files Browse the repository at this point in the history
Add timeout to CI tests
  • Loading branch information
JDBetteridge authored Nov 23, 2022
2 parents 9de5afc + e8be853 commit 3a1d876
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
PETSC_DIR: ${{ github.workspace }}/petsc
PETSC_ARCH: default
PETSC_CONFIGURE_OPTIONS: --with-debugging=1 --with-shared-libraries=1 --with-c2html=0 --with-fortran-bindings=0
RDMAV_FORK_SAFE: 1
timeout-minutes: 60

steps:
- name: Install system dependencies
Expand Down Expand Up @@ -73,6 +75,7 @@ jobs:
xargs -l1 python -m pip install < requirements-git.txt
python -m pip install pulp
python -m pip install -U flake8
python -m pip install -U pytest-timeout
python -m pip install .
- name: Run linting
Expand All @@ -83,7 +86,8 @@ jobs:
- name: Run tests
shell: bash
working-directory: PyOP2
run: pytest test -v --tb=native
run: pytest --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v test
timeout-minutes: 10

- name: Build documentation
if: ${{ matrix.python-version == '3.10' }}
Expand Down

0 comments on commit 3a1d876

Please sign in to comment.