Skip to content

Commit 68d4e38

Browse files
lkdvosclaude
andauthored
Only force latest compatible versions on the newest Julia in Tests (#4)
Same change as for TestGroups: `julia-actions/julia-runtest` resolves `force_latest_compatible_version: auto` to `true` on Dependabot and CompatHelper branches, which is unsatisfiable on an older Julia as soon as a dependency's newest range drops support for it. Restrict it to `julia-version == '1'` and expose `force-latest-compatible-version` so callers can override it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 765a769 commit 68d4e38

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/Tests.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ on:
6262
default: "src,ext"
6363
required: false
6464
type: string
65+
force-latest-compatible-version:
66+
description: >-
67+
Value passed to julia-actions/julia-runtest on the newest Julia ("1").
68+
Every other version is always run with "false". Options: true | false | auto
69+
default: "auto"
70+
required: false
71+
type: string
6572
julia-runtest-depwarn:
6673
description: "Value of the --depwarn flag while running Julia"
6774
default: "yes"
@@ -111,6 +118,11 @@ jobs:
111118
project: "${{ inputs.project }}"
112119
depwarn: "${{ inputs.julia-runtest-depwarn }}"
113120
coverage: "${{ inputs.coverage }}"
121+
# `julia-runtest` resolves `auto` to `true` on `dependabot/julia*` and `compathelper/*`
122+
# branches, which pins every [compat] entry to its newest range. That is unsatisfiable on
123+
# older Julia versions as soon as a dependency's newest range drops support for them, so
124+
# only apply it on the newest Julia.
125+
force_latest_compatible_version: "${{ inputs.julia-version == '1' && inputs.force-latest-compatible-version || 'false' }}"
114126
env:
115127
GROUP: "${{ inputs.group }}"
116128
JULIA_NUM_THREADS: "${{ inputs.nthreads }}"

0 commit comments

Comments
 (0)