Documentation #1373
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
push: | |
branches: | |
- 'main' | |
tags: ['*'] | |
pull_request: | |
release: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
arch: x64 | |
show-versioninfo: true | |
- uses: julia-actions/cache@v2 | |
- name: Configure doc environment | |
shell: julia --project=docs --color=yes {0} | |
run: | | |
import Pkg | |
Pkg.develop(Pkg.PackageSpec(path=pwd())) | |
Pkg.instantiate() | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-docdeploy@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
- name: Run doctests | |
shell: julia --project=docs --color=yes {0} | |
run: | | |
import Documenter, ContinuousNormalizingFlows | |
Documenter.DocMeta.setdocmeta!(ContinuousNormalizingFlows, :DocTestSetup, :(using ContinuousNormalizingFlows); recursive=true) | |
Documenter.doctest(ContinuousNormalizingFlows) |