Add registry clone skip test

This commit is contained in:
Curtis Vogt
2024-01-09 15:25:21 -06:00
parent 93acad015a
commit 3c1df8e430

View File

@@ -21,6 +21,7 @@ jobs:
matrix: matrix:
version: version:
- "1.0" - "1.0"
- "1.6" # Long-term support (LTS) release of Julia
- "1" # automatically expands to the latest stable 1.x release of Julia - "1" # automatically expands to the latest stable 1.x release of Julia
- nightly - nightly
os: os:
@@ -61,9 +62,22 @@ jobs:
- uses: ./.github/actions/julia-buildpkg - uses: ./.github/actions/julia-buildpkg
with: with:
ignore-no-cache: true ignore-no-cache: true
localregistry: |
https://github.com/JuliaRegistries/General.git
env: env:
JULIA_PKG_SERVER: ${{ matrix.pkg-server }} JULIA_PKG_SERVER: ${{ matrix.pkg-server }}
# When using the Pkg server the `Pkg.Registry.add("General")` will add the General registry
# via Pkg servers. Using `localregistry` to clone the General registry via HTTPS should be
# skipped.
- name: Test skipping registry cloning of duplicate repos
if: ${{ matrix.pkg-server == 'pkg.julialang.org' }}
shell: bash
run: |
if julia -e 'VERSION >= v"1.7-" || exit(1)'; then
! test -d $HOME/.julia/registries/General
fi
- uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1 - uses: julia-actions/julia-processcoverage@v1