Skip to content

Commit

Permalink
Better python setup for action
Browse files Browse the repository at this point in the history
  • Loading branch information
msschwartz21 committed Jun 17, 2024
1 parent 473cc07 commit 9670f1e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-notebooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: jupytext and nbconvert
run: >
pip install jupytext nbconvert
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install jupytext nbconvert
- name: Build notebooks
run: |
jupytext --to ipynb --update-metadata '{"jupytext":{"cell_metadata_filter":"all"}}' solution.py
jupyter nbconvert solution.ipynb --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags solution --to notebook --output exercise.ipynb
Expand All @@ -21,4 +30,3 @@ jobs:
- uses: EndBug/add-and-commit@v9
with:
add: solution.ipynb exercise.ipynb

0 comments on commit 9670f1e

Please sign in to comment.