Skip to content

Commit

Permalink
WID-211: run on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rarescodemart committed Apr 25, 2023
1 parent f5ffc62 commit ea63e2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build:
name: Run notebooks
runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
fail-fast: false
steps:
Expand All @@ -24,6 +24,4 @@ jobs:
python -m pip install nbformat nbconvert
- name: Run notebooks
uses: coactions/setup-xvfb@v1
with:
run: python ./dev/notebook_runner.py notebooks
run: python ./dev/notebook_runner.py notebooks
4 changes: 2 additions & 2 deletions dev/notebook_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ def execute_notebook(in_path, notebook):
with open(os.path.join(in_path, notebook), encoding='utf-8') as f:
nb = nbformat.read(f, as_version=4)
ep = ExecutePreprocessor(timeout=None)

ep.preprocess(nb)
ep.preprocess(nb)

# with open(os.path.join(out_path, notebook), 'w+', encoding='utf-8') as f: # for debug only
# nbformat.write(nb, f)
print(notebook + " - successful execution")



if __name__ == '__main__':

if len(sys.argv) == 2:
Expand Down

0 comments on commit ea63e2d

Please sign in to comment.