@@ -59,22 +59,14 @@ jobs:
5959 with :
6060 version : ${{ inputs.julia_version }}
6161 - uses : julia-actions/cache@v2
62- - uses : julia-actions/julia-downgrade-compat@v2
62+ # - uses: julia-actions/julia-downgrade-compat@v2
63+ # FIXME: update to julia-actions/julia-downgrade-compat@v2 when it is fixed
64+ - uses : avik-pal/julia-downgrade-compat@patch-1
6365 if : ${{ inputs.downgrade_testing }}
6466 with :
6567 projects : ${{ inputs.project }}
66-
67- # For 1.11 and beyond we can use sources. For older versions we need to
68- # manually develop the packages.
69- - uses : julia-actions/julia-buildpkg@v1
70- with :
71- project : ${{ inputs.project }}
72- if : ${{ inputs.julia_version != '1.10' }}
73- - uses : julia-actions/julia-runtest@v1
74- with :
75- project : ${{ inputs.project }}
76- test_args : ${{ inputs.test_args }}
77- if : ${{ inputs.julia_version != '1.10' }}
68+ julia_version : ${{ inputs.julia_version }}
69+ skip : Pkg, TOML, Statistics, LinearAlgebra, Random, Serialization, Test
7870
7971 # For 1.10 we need to manually develop the packages.
8072 - name : " Develop Dependencies"
@@ -87,10 +79,18 @@ jobs:
8779 end
8880 length(dev_pkgs) > 0 && Pkg.develop(dev_pkgs)
8981 shell : julia --color=yes --threads=auto {0}
90- if : ${{ inputs.julia_version == '1.10' }}
82+ if : ${{ ( inputs.julia_version == '1.10' || inputs.julia_version == 'lts') && inputs.local_dependencies != ' ' }}
9183 env :
9284 PROJECT : ${{ inputs.project }}
9385 DEV_DEPS : ${{ inputs.local_dependencies }}
86+
87+ # For 1.11 and beyond we can use sources. For older versions we need to
88+ # manually develop the packages.
89+ - uses : julia-actions/julia-buildpkg@v1
90+ with :
91+ project : ${{ inputs.project }}
92+ if : ${{ (inputs.julia_version != '1.10' && inputs.julia_version != 'lts') || inputs.local_dependencies == '' }}
93+
9494 - name : " Develop Test Dependencies"
9595 run : |
9696 import Pkg
@@ -102,7 +102,7 @@ jobs:
102102 end
103103 length(dev_pkgs) > 0 && Pkg.develop(dev_pkgs)
104104 shell : julia --color=yes --threads=auto {0}
105- if : ${{ inputs.julia_version == '1.10' }}
105+ if : ${{ ( inputs.julia_version == '1.10' || inputs.julia_version == 'lts') && inputs.local_test_dependencies != ' ' }}
106106 env :
107107 PROJECT : ${{ inputs.project }}
108108 TEST_DEPS : ${{ inputs.local_test_dependencies }}
@@ -114,11 +114,18 @@ jobs:
114114 const TEST_ARGS = filter(!isempty, split(get(ENV, "TEST_ARGS", "")))
115115 include(joinpath(project, "test", "runtests.jl"))
116116 shell : julia --color=yes --code-coverage=user --depwarn=yes --threads=auto --check-bounds=yes {0}
117- if : ${{ inputs.julia_version == '1.10' }}
117+ if : ${{ ( inputs.julia_version == '1.10' || inputs.julia_version == 'lts') && inputs.local_test_dependencies != ' ' }}
118118 env :
119119 PROJECT : ${{ inputs.project }}
120120 TEST_ARGS : ${{ inputs.test_args }}
121121
122+ - uses : julia-actions/julia-runtest@v1
123+ with :
124+ project : ${{ inputs.project }}
125+ test_args : ${{ inputs.test_args }}
126+ allow_reresolve : ${{ !(inputs.downgrade_testing) }}
127+ if : ${{ (inputs.julia_version != '1.10' && inputs.julia_version != 'lts') || inputs.local_test_dependencies == '' }}
128+
122129 - name : " Upload MLIR modules"
123130 uses : actions/upload-artifact@v4
124131 timeout-minutes : 10
0 commit comments