From c737d99a06b068e2584f841da024d47c91eea56a Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Mon, 9 Sep 2024 14:23:29 +0200 Subject: [PATCH] Use lts for julia-setup and disclaimer on min version In the package, use lts instead of 1.6 for Test.yml and TestGeneratedPkg.yml. For the template, in the JuliaMinCIVersion, add information about "min". Closes #415 --- .github/workflows/Test.yml | 2 +- .github/workflows/TestGeneratedPkg.yml | 2 +- copier/ci.yml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 4cab333d..bb4e024a 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: version: - - "1.6" + - "lts" - "1" os: - ubuntu-latest diff --git a/.github/workflows/TestGeneratedPkg.yml b/.github/workflows/TestGeneratedPkg.yml index 2555b43a..5c4d645a 100644 --- a/.github/workflows/TestGeneratedPkg.yml +++ b/.github/workflows/TestGeneratedPkg.yml @@ -26,7 +26,7 @@ jobs: fail-fast: false matrix: version: - - "1.6" + - "lts" - "1" os: - ubuntu-latest diff --git a/copier/ci.yml b/copier/ci.yml index 2a4dfeac..0e9ff544 100644 --- a/copier/ci.yml +++ b/copier/ci.yml @@ -1,11 +1,12 @@ JuliaMinCIVersion: when: "{{ AnswerStrategy == 'ask' }}" type: str - help: Minimum Julia version used in the tests (lts defaults to the Long Term Support version) + help: Minimum Julia version used in the tests (min, lts, or a version. See https://github.com/julia-actions/setup-julia#examples for accepted values) default: "{% if JuliaMinVersion == JULIA_LTS_VERSION %}lts{% else %}{{ JuliaMinVersion }}{% endif %}" description: | The Test workflow runs two versions of Julia by default: the latest stable release, which is defined by "1", and this version. It defaults to either "lts", or the version that you answered in JuliaMinVersion, if it wasn't the LTS. + Also accepts "min", which defaults to the minimum supported version in the compat section of Project.toml, or a version specification. See https://github.com/julia-actions/setup-julia#examples for more options. AddMacToCI: when: "{{ AnswerStrategy == 'ask' }}"