Skip to content

Commit

Permalink
Update pytest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolbPTB authored Nov 23, 2023
1 parent 4971726 commit 4b9a6e7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,30 @@ jobs:
create_notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[notebook]
- name: Translate scripts to notebooks
run: |
ls ./examples/
jupytext --to ipynb $(grep -rl --include='./examples/*.py' './')
- id: set-matrix
run: echo '::set-output name=notebooks::["./examples/t1_mapping_with_grad_acq.ipynb","14","16"]'
outputs:
notebooks: ${{ steps.set-matrix.outputs.notebooks }}

run_notebooks:
needs: create_notebooks
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4b9a6e7

Please sign in to comment.