From 16acdf1fe1b7de1db94636fe1b32c3cc2ffe1b60 Mon Sep 17 00:00:00 2001 From: Alexander James Date: Mon, 3 Mar 2025 12:24:13 -0800 Subject: [PATCH 1/6] update python version in actions --- .github/workflows/publish_jupyterbook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_jupyterbook.yml b/.github/workflows/publish_jupyterbook.yml index f3a2659..8dbfc33 100644 --- a/.github/workflows/publish_jupyterbook.yml +++ b/.github/workflows/publish_jupyterbook.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 # 3) Install Python dependencies - name: Install Python dependencies From 0a9754d0ac9c86cbae568d8769e6aae8b20c1645 Mon Sep 17 00:00:00 2001 From: Alexander James Date: Mon, 3 Mar 2025 12:54:48 -0800 Subject: [PATCH 2/6] test ubuntu version --- .github/workflows/publish_jupyterbook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_jupyterbook.yml b/.github/workflows/publish_jupyterbook.yml index 8dbfc33..973fb3f 100644 --- a/.github/workflows/publish_jupyterbook.yml +++ b/.github/workflows/publish_jupyterbook.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-23.04 steps: # 1) Check out the jupyterbook branch to build from From ac5946593075eb0dd6862019e79dda200bcba7e5 Mon Sep 17 00:00:00 2001 From: Alexander James Date: Mon, 3 Mar 2025 13:17:27 -0800 Subject: [PATCH 3/6] run tests forked and rollback ubuntu change --- .github/workflows/pr-tests.yml | 2 +- .github/workflows/publish_jupyterbook.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index c3eda17..3b30bfb 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -25,4 +25,4 @@ jobs: - name: Test notebooks run: | conda activate pyleo - pytest --nbmake -n=auto --nbmake-timeout=3600 notebooks/*ipynb + pytest --nbmake --forked -n=auto --nbmake-timeout=3600 notebooks/*ipynb diff --git a/.github/workflows/publish_jupyterbook.yml b/.github/workflows/publish_jupyterbook.yml index 973fb3f..8dbfc33 100644 --- a/.github/workflows/publish_jupyterbook.yml +++ b/.github/workflows/publish_jupyterbook.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-23.04 + runs-on: ubuntu-latest steps: # 1) Check out the jupyterbook branch to build from From c93fbeda4c68b0767d85f4043e634a3779b1e2e3 Mon Sep 17 00:00:00 2001 From: Alexander James Date: Mon, 3 Mar 2025 13:22:17 -0800 Subject: [PATCH 4/6] include dependency --- .github/workflows/pr-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 3b30bfb..71d4a45 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -20,7 +20,7 @@ jobs: - name: Install test dependencies run: | conda activate pyleo - pip install pytest-xdist nbmake + pip install pytest-xdist pytest-forked nbmake conda list - name: Test notebooks run: | From 4b1a7b3e28652069de2e496abe9f540d4620d20e Mon Sep 17 00:00:00 2001 From: Alexander James Date: Mon, 3 Mar 2025 13:33:50 -0800 Subject: [PATCH 5/6] enable verbose for troubleshooting --- .github/workflows/pr-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 71d4a45..4425e50 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -25,4 +25,4 @@ jobs: - name: Test notebooks run: | conda activate pyleo - pytest --nbmake --forked -n=auto --nbmake-timeout=3600 notebooks/*ipynb + pytest --nbmake --forked -n=auto -v --nbmake-timeout=3600 notebooks/*ipynb From 711d7bec524a093c3ff121011dcf296dde677c76 Mon Sep 17 00:00:00 2001 From: Alexander James Date: Mon, 3 Mar 2025 14:19:50 -0800 Subject: [PATCH 6/6] limit parallelism in tests --- .github/workflows/pr-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 4425e50..2a6eab0 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -25,4 +25,4 @@ jobs: - name: Test notebooks run: | conda activate pyleo - pytest --nbmake --forked -n=auto -v --nbmake-timeout=3600 notebooks/*ipynb + pytest --nbmake --forked -n=2 -v --nbmake-timeout=3600 notebooks/*ipynb