From 716b8c791c34b471887df60421bcc66688c53f63 Mon Sep 17 00:00:00 2001 From: Adrian Hill Date: Thu, 18 Jan 2024 21:27:13 +0100 Subject: [PATCH] Fix workflow, allow MLDatasets download --- .github/workflows/CI.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 62c4987..5714abd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -45,30 +45,23 @@ jobs: docs: name: Documentation runs-on: ubuntu-latest - permissions: - actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created - contents: write - statuses: write steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: '1' - - uses: julia-actions/cache@v1 - - name: Configure doc environment - shell: julia --project=docs --color=yes {0} - run: | - using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate() - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-docdeploy@v1 + - run: | + julia --project=docs -e ' + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate()' + - run: | + julia --project=docs -e ' + using Documenter: doctest + using XAIBase + doctest(XAIBase)' + - run: julia --project=docs docs/make.jl env: + DATADEPS_ALWAYS_ACCEPT: true # for MLDatasets download GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Run doctests - shell: julia --project=docs --color=yes {0} - run: | - using Documenter: DocMeta, doctest - using XAIBase - DocMeta.setdocmeta!(XAIBase, :DocTestSetup, :(using XAIBase); recursive=true) - doctest(XAIBase) \ No newline at end of file + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} \ No newline at end of file