From 28c908baa698454d9e7b2a9e97c7f8760db29126 Mon Sep 17 00:00:00 2001 From: Philippe Maincon Date: Thu, 2 Jan 2025 15:16:35 +0100 Subject: [PATCH] try CI --- .github/workflows/ci.yml | 8 +++++++- .github/workflows/documentation.yml | 2 +- test/runtests.jl | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) 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