Guide Notebooks Regression #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Guide Notebooks Regression | |
run-name: Guide Notebooks Regression | |
on: [push] | |
jobs: | |
guide-notebooks-regression: | |
if: ${{ false }} | |
runs-on: self-hosted | |
steps: | |
- run: echo "automatically triggered by a ${{ github.event_name }} event" | |
- run: echo "running on a ${{ runner.os }} server hosted by github" | |
- name: clone | |
uses: actions/checkout@v3 | |
- name: install | |
run: | | |
cd ${{ github.workspace }} | |
python -m venv env | |
source env/bin/activate | |
pip install --upgrade pip | |
pip install jupyter | |
pip install -e . | |
nobrainer info | |
- name: run | |
run: | | |
cat<<EOF > run.sh | |
#!/bin/bash | |
source env/bin/activate | |
$@ | |
EOF | |
for notebook in $(ls guide/[0-9][0-9]-*.ipynb); do | |
srun \ | |
-p gablab \ | |
--mem=16G \ | |
-t 10 \ | |
singularity exec \ | |
--nv -B /om \ | |
${HOME}/img/tensorflow_latest-gpu.sif \ | |
./run.sh \ | |
jupyter nbconvert \ | |
--execute ${notebook} \ | |
--to markdown \ | |
--stdout | |
done |