-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test version of a github workflow to build all exercise notebooks
- Loading branch information
1 parent
111302d
commit b19ed06
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build Notebooks | ||
on: | ||
push: | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- 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: | | ||
jupyter nbconvert 01_CARE/care_solution.ipynb \ | ||
--ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook \ | ||
--output 01_CARE/care_exercise.ipynb | ||
jupyter nbconvert 02_Noise2Void/n2v_solution.ipynb \ | ||
--ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook \ | ||
--output 02_Noise2Void/n2v_exercise.ipynb | ||
jupyter nbconvert 03_COSDD/solution.ipynb \ | ||
--ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook \ | ||
--output 03_COSDD/exercise.ipynb | ||
jupyter nbconvert 03_COSDD/bonus-solution-generation.ipynb \ | ||
--ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook \ | ||
--output 03_COSDD/bonus-exercise.ipynb | ||
jupyter nbconvert 04_DenoiSplit/solution.ipynb \ | ||
--ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook \ | ||
--output 04_DenoiSplit/exercise.ipynb | ||
jupyter nbconvert 05_bonus_Noise2Noise/n2n_solution.ipynb \ | ||
--ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook \ | ||
--output 05_bonus_Noise2Noise/n2n_exercise.ipynb | ||
|
||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
add: "*.ipynb" |