Skip to content

Commit e31f68f

Browse files
committed
Adapts timeout in tests to avoid cancelled nbextension tests
1 parent 52e88e5 commit e31f68f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test-docs-python-nbextensions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
jobs:
1818
test_nbgrader:
1919
runs-on: ${{ matrix.os }}
20-
timeout-minutes: 25
20+
timeout-minutes: 45
2121

2222
env:
2323
# NOTE: UTF-8 content may be interpreted as ascii and causes errors
@@ -50,12 +50,15 @@ jobs:
5050
run: |
5151
if [ "${{ matrix.group }}" == "docs" ]; then
5252
echo "GROUP=docs" >> $GITHUB_ENV
53+
echo "TIMEOUT_MINUTES=15" >> $GITHUB_ENV
5354
fi
5455
if [ "${{ matrix.group }}" == "nbextensions" ]; then
5556
echo "GROUP=nbextensions" >> $GITHUB_ENV
57+
echo "TIMEOUT_MINUTES=25" >> $GITHUB_ENV
5658
fi
5759
if [ "${{ matrix.group }}" == "python" ]; then
5860
echo "GROUP=python" >> $GITHUB_ENV
61+
echo "TIMEOUT_MINUTES=20" >> $GITHUB_ENV
5962
fi
6063
- uses: actions/checkout@v2
6164
- name: Install node
@@ -86,6 +89,7 @@ jobs:
8689
run: |
8790
npx playwright install
8891
- name: Run pytest
92+
timeout-minutes: ${{ fromJSON(env.TIMEOUT_MINUTES) }}
8993
run: |
9094
python tasks.py tests --group="$GROUP"
9195
# - name: Submit codecov report

0 commit comments

Comments
 (0)