diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7545a06..cd5f933 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,6 +15,10 @@ jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} + timeout-minutes: 60 + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created + actions: write + contents: read strategy: fail-fast: false matrix: @@ -44,19 +48,30 @@ jobs: 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@v2 with: version: '1' + - uses: julia-actions/cache@v2 + - 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 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: | - julia --project=docs -e ' - using Documenter: DocMeta, doctest - using Fronts - DocMeta.setdocmeta!(Fronts, :DocTestSetup, :(using Fronts); recursive=true) - doctest(Fronts)' + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + - name: Run doctests + shell: julia --project=docs --color=yes {0} + run: | + using Documenter: DocMeta, doctest + using Fronts + DocMeta.setdocmeta!(Fronts, :DocTestSetup, :(using Fronts); recursive=true) + doctest(Fronts)