Skip to content

Commit

Permalink
setup.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiristseng committed Oct 4, 2023
1 parent 86152dd commit bc3c0ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ jobs:
env:
PYTHON: ${{ env.pythonLocation }}/python
JULIA_PYTHONCALL_EXE: ${{ env.pythonLocation }}/python
run: |
julia --project="" --color=yes -e 'using Pkg; Pkg.add(["IJulia"])'
julia --project=@. --color=yes -e 'using Pkg; Pkg.instantiate(); Pkg.precompile(); Pkg.gc()'
run: julia --color=yes setup.jl
- name: List notebooks as a JSON array
id: set-matrix
working-directory: docs
Expand Down Expand Up @@ -109,9 +107,7 @@ jobs:
env:
PYTHON: ${{ env.pythonLocation }}/python
JULIA_PYTHONCALL_EXE: ${{ env.pythonLocation }}/python
run: |
julia --project="" --color=yes -e 'using Pkg; Pkg.add(["IJulia"]); import IJulia; IJulia.installkernel("Julia", "--project=@.")'
julia --project=@. --color=yes -e 'using Pkg; Pkg.instantiate(); Pkg.precompile(); Pkg.gc()'
run: julia --color=yes setup.jl
- name: Execute Notebook
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: >
Expand Down
10 changes: 10 additions & 0 deletions setup.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Pkg
Pkg.add(["IJulia"])

import IJulia
IJulia.installkernel("Julia", "--project=@.")

Pkg.activate(".")
Pkg.instantiate()
Pkg.precompile()
Pkg.gc()

0 comments on commit bc3c0ad

Please sign in to comment.