@@ -24,12 +24,12 @@ jobs:
2424 arch :
2525 - x64
2626 steps :
27- - uses : actions/checkout@v2
28- - uses : julia-actions/setup-julia@v1
27+ - uses : actions/checkout@v5
28+ - uses : julia-actions/setup-julia@v2
2929 with :
3030 version : ${{ matrix.version }}
3131 arch : ${{ matrix.arch }}
32- - uses : julia-actions/cache@v1
32+ - uses : julia-actions/cache@v2
3333 env :
3434 cache-name : cache-artifacts
3535 with :
@@ -42,21 +42,21 @@ jobs:
4242 - uses : julia-actions/julia-buildpkg@v1
4343 - uses : julia-actions/julia-runtest@v1
4444 - uses : julia-actions/julia-processcoverage@v1
45- - uses : codecov/codecov-action@v4
45+ - uses : codecov/codecov-action@v5
4646 with :
4747 token : ${{ secrets.CODECOV_TOKEN }}
4848 fail_ci_if_error : false
49- verbose : true
49+ verbose : true
5050 docs :
5151 name : Documentation
5252 runs-on : ubuntu-latest
5353 steps :
54- - uses : actions/checkout@v2
55- - uses : julia-actions/setup-julia@v1
54+ - uses : actions/checkout@v5
55+ - uses : julia-actions/setup-julia@v2
5656 with :
5757 version : ' 1'
58- - run : |
59- julia -e '
58+ - shell : julia --color=yes {0}
59+ run : |
6060 function set_environment_variable(name::AbstractString, value::AbstractString)
6161 github_env = ENV["GITHUB_ENV"]
6262 touch(github_env)
@@ -84,35 +84,39 @@ jobs:
8484 if build_docs
8585 @info("We will build the docs")
8686 set_environment_variable("BUILD_DOCS", "true")
87- else
87+ else
8888 @info("We will NOT build the docs")
8989 set_environment_variable("BUILD_DOCS", "false")
90- end'
91- - run : |
92- julia --project=docs -e '
90+ end
91+ - name : Instantiate docs environment
92+ shell : julia --color=yes --project=docs {0}
93+ run : |
9394 if ENV["BUILD_DOCS"] == "true"
9495 using Pkg
9596 Pkg.develop(PackageSpec(path=pwd()))
9697 Pkg.instantiate()
97- end'
98- - run : |
99- julia --project=docs -e '
98+ end
99+ - name : Run doctests
100+ shell : julia --color=yes --project=docs {0}
101+ run : |
100102 if ENV["BUILD_DOCS"] == "true"
101103 using Documenter: doctest
102104 using ScientificTypes
103105 @info "attempting to run the doctests"
104106 doctest(ScientificTypes)
105107 else
106108 @info "skipping the doctests"
107- end'
108- - run : julia --project=docs -e '
109+ end
110+ - name : Build documentation
111+ shell : julia --color=yes --project=docs {0}
112+ run : |
109113 if ENV["BUILD_DOCS"] == "true"
110114 @info "attempting to build the docs"
111115 run(`julia --project=docs docs/make.jl`)
112116 @info "successfully built the docs"
113117 else
114118 @info "skipping the docs build"
115- end'
119+ end
116120 env :
117121 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
118122 DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
0 commit comments