From ac06a918b42f9526fdc089b23fb50da6e1e98c95 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Wed, 22 May 2024 06:07:36 -0500 Subject: [PATCH] Ensure we don't break weakdeps (#462) --- .github/workflows/CI.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 94358699..70485da4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,11 +14,14 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }} cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} -# Only download the tzdata version used in TimeZones.jl's tests to avoid unnecessary -# load on IANA's servers. env: + # Only download the tzdata version used in TimeZones.jl's tests to avoid unnecessary + # load on IANA's servers. JULIA_TZ_VERSION: 2016j # Matches tzdata version used in tests + # The HEAD commit which triggered this workflow. By default PRs use a merge commit + SHA: ${{ github.event.pull_request.head.sha || github.sha }} + jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} @@ -58,6 +61,22 @@ jobs: with: files: lcov.info + # https://pkgdocs.julialang.org/v1/creating-packages/#Transition-from-normal-dependency-to-extension + weakdeps: + name: Weakdeps + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: "1.6" # LTS / Oldest support version + - uses: julia-actions/cache@v2 + - shell: julia --color=yes --project=docs {0} + run: | + using Pkg + Pkg.add(PackageSpec(name="TimeZones", rev=ENV["SHA"])) + using TimeZones + benchmarks: name: Benchmarks runs-on: ubuntu-latest