Skip to content

Commit

Permalink
Add config to run on ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinds committed Jul 6, 2023
1 parent 52839d4 commit 7909c05
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/guide-notebooks-ec2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Guide Notebooks Regression
run-name: Guide Notebooks Regression
on: [push]
jobs:
guide_notebooks_regression:
runs-on: [self-hosted, nobrainer-ci-ec2]
steps:
- name: clone
uses: actions/checkout@v3
- name: install
run: |
set -xe
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: |
set -xe
cd ${{ github.workspace }}
source env/bin/activate
for notebook in $(ls guide/[0-9][0-9]-*.ipynb); do
echo "running ${notebook}"
jupyter nbconvert \
--execute ${notebook} \
--to markdown \
--stdout
done

0 comments on commit 7909c05

Please sign in to comment.