Skip to content

Commit

Permalink
changed fig2 noteook and added github action to test
Browse files Browse the repository at this point in the history
  • Loading branch information
briandepasquale committed Aug 7, 2024
1 parent b85bd8b commit e20bd62
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/exectue_notebook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Execute notebook

on: [push]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
version:
- '1.10'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: yaananth/run-notebook@v2
env:
RUNNER: ${{ toJson(runner) }}
SECRETS: ${{ toJson(secrets) }}
GITHUB: ${{ toJson(github) }}
with:
notebook: "/notebooks/Fig2.ipynb"
isReport: False
poll: True
- uses: actions/upload-artifact@v3
if: always()
with:
name: output
path: ${{ RUNNER.temp }}/nb-runner
env:
RUNNER: ${{ toJson(runner) }}
3 changes: 2 additions & 1 deletion notebooks/Fig2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,9 @@
"ax[j].set_xlim(-55, 55)\n",
"\n",
"tight_layout() \n",
"display(gcf())\n",
"\n",
"PyPlot.savefig(joinpath(abspath(joinpath(pwd(), \"..\")), \"figs/\")*\"Fig2.pdf\")"
"#PyPlot.savefig(joinpath(abspath(joinpath(pwd(), \"..\")), \"figs/\")*\"Fig2.pdf\")"
]
},
{
Expand Down

0 comments on commit e20bd62

Please sign in to comment.