diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fff6f88..60745f9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -38,6 +38,13 @@ jobs: - uses: julia-actions/cache@v3 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + - name: Run doctests + run: julia --project=docs -e ' + using Pkg; Pkg.instantiate() + using Documenter; + using FlyThroughPaths; + Documenter.DocMeta.setdocmeta!(FlyThroughPaths, :DocTestSetup, :(using FlyThroughPaths); recursive=true); + Documenter.doctest(FlyThroughPaths);' - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v5 with: @@ -61,20 +68,15 @@ jobs: run: | xvfb-run -s '-screen 0 1024x768x24' julia --project=docs -e ' using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.add(name = "DocumenterVitepress", rev = "master") Pkg.instantiate()' env: DISPLAY: ':0' - - name: Build and deploy + - uses: julia-actions/julia-docdeploy@v1 + with: + prefix: xvfb-run + install-package: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key DISPLAY: ':0' - run: xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ docs/make.jl deploy - - name: Run doctests - run: julia --project=docs -e ' - using Documenter; - using FlyThroughPaths; - Documenter.DocMeta.setdocmeta!(FlyThroughPaths, :DocTestSetup, :(using FlyThroughPaths); recursive=true); - Documenter.doctest(FlyThroughPaths);' + DATADEPS_ALWAYS_ACCEPT: 'true' diff --git a/Project.toml b/Project.toml index d14b109..f01e22c 100644 --- a/Project.toml +++ b/Project.toml @@ -3,6 +3,9 @@ uuid = "c11bb9a7-2755-425a-88f3-ebe93bbdb91f" authors = ["Tim Holy and contributors"] version = "0.1.3" +[workspace] +projects = ["test", "docs"] + [deps] StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" @@ -18,10 +21,3 @@ Makie = "0.21, 0.22, 0.23, 0.24" StaticArrays = "1" Test = "1" julia = "1.10" - -[extras] -LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - -[targets] -test = ["LinearAlgebra", "Test"] diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..8c94060 --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,9 @@ +[deps] +FlyThroughPaths = "c11bb9a7-2755-425a-88f3-ebe93bbdb91f" +StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" +Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +FlyThroughPaths = {path = ".."} \ No newline at end of file