Skip to content

Commit

Permalink
Ensure we don't break weakdeps (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored May 22, 2024
1 parent e9919ef commit ac06a91
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac06a91

Please sign in to comment.