diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 0bc057e3..1855ff31 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -11,32 +11,49 @@ on: - main paths-ignore: - 'docs/**' +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + version: ['1.6'] + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + - uses: cjdoris/julia-downgrade-compat-action@v1 + # if: ${{ matrix.version == '1.6' }} + with: + skip: InteractiveUtils,LinearAlgebra,Random,Test + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + jobs: generate-matrix: - runs-on: ${{ github.event.inputs.os }} + runs-on: ubuntu-latest outputs: matrix: ${{ steps.genmat1.outputs.matrix || steps.genmat2.outputs.matrix }} steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@latest with: - version: ${{ github.event.inputs.julia-version }} - arch: ${{ github.event.inputs.arch }} + version: 1 - run: julia -e 'using Pkg; pkg"add CompatHelperLocal"' - - run: julia -e 'using Pkg; pkg"add ${{ github.event.inputs.package }}${{ github.event.inputs.revision }}"' - - if: github.event.inputs.mode == 'two' + - run: julia -e 'using Pkg; pkg"add Copulas"' + - if: true #github.event.inputs.mode == 'two' id: genmat1 run: | echo '::echo::on' - julia -e 'import CompatHelperLocal as CHL; import ${{ github.event.inputs.package }}; projfile = joinpath(pathof(${{ github.event.inputs.package }}) |> dirname |> dirname, "Project.toml"); println(CHL.compats_combinations_to_gha_string(CHL.get_compats_combinations(projfile, only_resolveable=true)))' - - if: github.event.inputs.mode == 'all' + julia -e 'import CompatHelperLocal as CHL; import Copulas; projfile = joinpath(pathof(Copulas) |> dirname |> dirname, "Project.toml"); println(CHL.compats_combinations_to_gha_string(CHL.get_compats_combinations(projfile, only_resolveable=true)))' + - if: false # github.event.inputs.mode == 'all' id: genmat2 run: | echo '::echo::on' - julia -e 'import CompatHelperLocal as CHL; import ${{ github.event.inputs.package }}; projfile = joinpath(pathof(${{ github.event.inputs.package }}) |> dirname |> dirname, "Project.toml"); println(CHL.compats_combinations_to_gha_string(CHL.get_all_compats_combinations(projfile)))' + julia -e 'import CompatHelperLocal as CHL; import Copulas; projfile = joinpath(pathof(Copulas) |> dirname |> dirname, "Project.toml"); println(CHL.compats_combinations_to_gha_string(CHL.get_all_compats_combinations(projfile)))' test: needs: generate-matrix - runs-on: ${{ github.event.inputs.os }} + runs-on: ubuntu-latest strategy: matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}} fail-fast: false @@ -44,8 +61,7 @@ jobs: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@latest with: - version: ${{ github.event.inputs.julia-version }} - arch: ${{ github.event.inputs.arch }} + version: 1 - run: julia -e 'using Pkg; pkg"add CompatHelperLocal"' - - run: julia -e 'using Pkg; pkg"add ${{ github.event.inputs.package }}${{ github.event.inputs.revision }}"' - - run: julia -e 'import CompatHelperLocal as CHL; import ${{ github.event.inputs.package }}; CHL.test_compats_combinations(${{ github.event.inputs.package }}, [${{ matrix.compats }}])' \ No newline at end of file + - run: julia -e 'using Pkg; pkg"add Copulas"' + - run: julia -e 'import CompatHelperLocal as CHL; import Copulas; CHL.test_compats_combinations(Copulas, [${{ matrix.compats }}])' \ No newline at end of file