Skip to content

Commit

Permalink
Action colab tutorial (#7)
Browse files Browse the repository at this point in the history
* 🚧 try to add colab docker container and run tutorial

* 🐛 try to increase disk space

* 🐛 kernel restart required. move installation to bash

- papermill start the kernel, so installation shoudl work
  • Loading branch information
Henry Webel authored Mar 5, 2024
1 parent ee29a2d commit a2fb327
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/colab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test that tutorial runs on latest colab image

on:
push:
schedule:
- cron: '0 2 * * 3'

jobs:
test:
name: Test
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
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
pip install njab heatmapz openpyxl "matplotlib<3.7" plotly
papermill log_reg.ipynb log_reg_tested.ipynb

0 comments on commit a2fb327

Please sign in to comment.