Skip to content

Commit

Permalink
for pr demo 1
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelwnaylor committed Nov 18, 2024
1 parent a046562 commit b102b19
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/smarteole_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
paths-ignore:
- 'examples/smarteole_example.ipynb'
pull_request:
workflow_dispatch:


Expand Down
2 changes: 1 addition & 1 deletion examples/smarteole_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"from wind_up.models import PlotConfig\n",
"from wind_up.reanalysis_data import ReanalysisDataset\n",
"\n",
"sys.path.append(str(PROJECTROOT_DIR))\n",
"sys.path.append(str(PROJECTROOT_DIR / \"examples\"))\n",
"from examples.helpers import download_zenodo_data"
]
},
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ sequence = [
{ cmd = "coverage report -m" },
]

[tool.poe.tasks.smarteole-nb]
help = "Runs Smarteole notebook"
sequence = [
{ shell = "jupyter nbconvert --execute --to notebook --inplace examples/smarteole_example.ipynb" },
]

[tool.poe.tasks.all]
help = "Run all required pre-push commands"
sequence = [{ ref = "lint" }, { ref = "test" }]

0 comments on commit b102b19

Please sign in to comment.