From 941787e43a68213cd2b3ffb10b36e320bcda2206 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 1 Oct 2026 14:19:26 -0400 Subject: [PATCH] Only force latest compatible versions on the newest Julia in Tests 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 --- .github/workflows/Tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 40c5271..005e0c8 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -62,6 +62,13 @@ on: default: "src,ext" required: false type: string + force-latest-compatible-version: + description: >- + Value passed to julia-actions/julia-runtest on the newest Julia ("1"). + Every other version is always run with "false". Options: true | false | auto + default: "auto" + required: false + type: string julia-runtest-depwarn: description: "Value of the --depwarn flag while running Julia" default: "yes" @@ -111,6 +118,11 @@ jobs: project: "${{ inputs.project }}" depwarn: "${{ inputs.julia-runtest-depwarn }}" coverage: "${{ inputs.coverage }}" + # `julia-runtest` resolves `auto` to `true` on `dependabot/julia*` and `compathelper/*` + # branches, which pins every [compat] entry to its newest range. That is unsatisfiable on + # older Julia versions as soon as a dependency's newest range drops support for them, so + # only apply it on the newest Julia. + force_latest_compatible_version: "${{ inputs.julia-version == '1' && inputs.force-latest-compatible-version || 'false' }}" env: GROUP: "${{ inputs.group }}" JULIA_NUM_THREADS: "${{ inputs.nthreads }}"