From 3b1e6ac8e8237dba4cd16b6ef5fcaf4737ba82ba Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 28 Feb 2024 16:40:15 +0100 Subject: [PATCH 1/3] :construction: try to add colab docker container and run tutorial --- .github/workflows/colab.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/colab.yml diff --git a/.github/workflows/colab.yml b/.github/workflows/colab.yml new file mode 100644 index 0000000..22c2c59 --- /dev/null +++ b/.github/workflows/colab.yml @@ -0,0 +1,24 @@ +name: Test that tutorial runs on latest colab image + +on: + push: + schedule: + - cron: '0 2 * * 3' + +jobs: + test: + name: Test + runs-on: ubuntu-latest + # https://console.cloud.google.com/artifacts/docker/colab-images/europe/public/runtime + container: + image: europe-docker.pkg.dev/colab-images/public/runtime:latest + steps: + - uses: actions/checkout@v4 + - name: Test tutorials + run: | + python3 -m pip install papermill ipykernel njab + cd docs/tutorial + papermill explorative_analysis.ipynb --help-notebook + papermill log_reg.ipynb --help-notebook + papermill explorative_analysis.ipynb explorative_analysis_tested.ipynb + papermill log_reg.ipynb log_reg_tested.ipynb From 69b508f91348c48abdf25bc6d224c3d54865d9f7 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 28 Feb 2024 16:59:10 +0100 Subject: [PATCH 2/3] :bug: try to increase disk space --- .github/workflows/colab.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/colab.yml b/.github/workflows/colab.yml index 22c2c59..b38cff9 100644 --- a/.github/workflows/colab.yml +++ b/.github/workflows/colab.yml @@ -8,7 +8,7 @@ on: jobs: test: name: Test - runs-on: ubuntu-latest + runs-on: ubuntu-latest-4core # increase disk space # https://console.cloud.google.com/artifacts/docker/colab-images/europe/public/runtime container: image: europe-docker.pkg.dev/colab-images/public/runtime:latest From 25b37ca078017fe5c6f8ee542d81187494386060 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 5 Mar 2024 17:06:44 +0100 Subject: [PATCH 3/3] :bug: kernel restart required. move installation to bash - papermill start the kernel, so installation shoudl work --- .github/workflows/colab.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/colab.yml b/.github/workflows/colab.yml index b38cff9..8293dcf 100644 --- a/.github/workflows/colab.yml +++ b/.github/workflows/colab.yml @@ -21,4 +21,5 @@ jobs: papermill explorative_analysis.ipynb --help-notebook papermill log_reg.ipynb --help-notebook papermill explorative_analysis.ipynb explorative_analysis_tested.ipynb + pip install njab heatmapz openpyxl "matplotlib<3.7" plotly papermill log_reg.ipynb log_reg_tested.ipynb