Skip to content

Commit

Permalink
Run local on ec2 and om at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinds committed Jul 6, 2023
1 parent 02b1215 commit b3e16b4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/guide-notebooks-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Guide Notebooks Regression - EC2
run-name: Guide Notebooks Regression - EC2
on: [push]
jobs:
guide_notebooks_regression:
guide_notebooks_regression_ec2:
runs-on: [self-hosted, nobrainer-ci-ec2]
steps:
- name: clone
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/guide-notebooks-om.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Guide Notebooks Regression - OM
run-name: Guide Notebooks Regression - OM
on: [push]
jobs:
guide_notebooks_regression_om:
runs-on: [self-hosted, nobrainer-ci-om]
steps:
- name: clone
uses: actions/checkout@v3
- name: install
run: |
set -xe
cd ${{ github.workspace }}
python3 -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 b3e16b4

Please sign in to comment.