Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,12 @@
version: "1"
- name: Use Julia cache
uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow or composite action Medium

Unpinned 3rd party Action 'Docs' step
Uses Step
uses 'julia-actions/julia-buildpkg' with ref 'v1', not a pinned commit hash
- name: Instantiate environment with development version of the package
run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- name: Run doctest
run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using SolarPosition
using Dates
DocMeta.setdocmeta!(SolarPosition, :DocTestSetup, :(using SolarPosition; using Dates; obs = Observer(37.7749, -122.4194, 100.0); dt = DateTime(2023, 6, 21, 12, 0, 0)); recursive=true)
doctest(SolarPosition)'
shell: julia --color=yes --project=docs {0}
run: using Pkg; Pkg.instantiate()
- name: Generate and deploy documentation
run: julia --project=docs docs/make.jl
run: julia --color=yes --project=docs docs/make.jl
env:
JULIA_PKG_SERVER: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading