diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d453f9..ffa8186 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,11 @@ on: - doc tags: '*' pull_request: + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read env: JULIA_NUM_THREADS: 2 jobs: @@ -32,7 +37,8 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v4 + - uses: julia-actions/cache@v2 + - uses: actions/cache@v4 env: cache-name: cache-artifacts with: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 51eae48..a17cd47 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -7,7 +7,7 @@ on: branches: - main - dev - - doc + # - doc tags: '*' pull_request: diff --git a/test/runtests.jl b/test/runtests.jl index eba687f..51a5de5 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,8 @@ test = @__DIR__ muscade = normpath(joinpath(test,"..")) docs = normpath(joinpath(test,"../docs")) -using Pkg +import Pkg; Pkg.add("Pkg") # for CI on headless server +#using Pkg Pkg.activate(test) using Muscade # seems necessary for doc test to work on a cold start module Runtest