From f57f0ffe1fe1b2e9ae388db004515b5d923ce1dc Mon Sep 17 00:00:00 2001 From: Wen Wei Tseng Date: Tue, 17 Oct 2023 22:49:36 +0800 Subject: [PATCH] install julia kernel --- .github/workflows/ci.yml | 3 +++ setup.jl | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 716a89a..b7ffb40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,9 @@ jobs: with: path: docs/${{ matrix.notebook }} key: ${{ runner.os }}-notebook-${{ hashFiles(format('docs/{0}', matrix.notebook)) }}-${{ needs.setup.outputs.hash }} + - name: Install Julia kernel + if: ${{ steps.cache.outputs.cache-hit != 'true' }} + run: julia -e 'import IJulia; IJulia.installkernel("Julia", "--project=@.")' - name: Execute Notebook if: ${{ steps.cache.outputs.cache-hit != 'true' }} run: > diff --git a/setup.jl b/setup.jl index 8c3c982..ad8188a 100644 --- a/setup.jl +++ b/setup.jl @@ -1,10 +1,6 @@ using Pkg Pkg.add(["IJulia"]) -import IJulia -IJulia.installkernel("Julia", "--project=@.") - Pkg.activate(".") Pkg.instantiate() Pkg.precompile() -Pkg.gc()