Skip to content

Commit dfd437d

Browse files
authored
Update timeout and test dependencies in workflow
Increased timeout for the test job and added pytest-xdist to dependencies.
1 parent b8fca26 commit dfd437d

1 file changed

Lines changed: 3 additions & 20 deletions

File tree

.github/workflows/pr-tests.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
test:
88
runs-on: ubuntu-latest
9-
timeout-minutes: 60
9+
timeout-minutes: 90
1010
defaults:
1111
run:
1212
shell: bash -l {0}
@@ -22,27 +22,10 @@ jobs:
2222
- name: Install test dependencies
2323
run: |
2424
conda activate pyleo
25-
pip install nbmake
25+
pip install pytest-xdist nbmake
2626
conda list
2727
28-
- name: Test notebooks
29-
run: |
30-
conda activate pyleo
31-
mkdir -p executed
32-
for nb in notebooks/*.ipynb; do
33-
echo "=== Running $nb ==="
34-
timeout 300 pytest --nbmake -v --tb=long --overwrite --nbmake-timeout=120 "$nb" || true
35-
cp "$nb" executed/
36-
done
37-
38-
- name: Upload executed notebooks
39-
if: always()
40-
uses: actions/upload-artifact@v4
41-
with:
42-
name: executed-notebooks
43-
path: executed/*.ipynb
44-
4528
- name: Check for failures
4629
run: |
4730
conda activate pyleo
48-
pytest --nbmake -v --tb=long --nbmake-timeout=120 notebooks/*ipynb
31+
pytest --nbmake -v --tb=long --nbmake-timeout=3600 notebooks/*ipynb

0 commit comments

Comments
 (0)