Skip to content

Commit

Permalink
Fix workflow, allow MLDatasets download
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Jan 18, 2024
1 parent 407c874 commit 716b8c7
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 comments on commit 716b8c7

Please sign in to comment.