Skip to content

Create Downgrade-CI and bump lower compat bounds #15

Create Downgrade-CI and bump lower compat bounds

Create Downgrade-CI and bump lower compat bounds #15

Workflow file for this run

name: Downgrade CI
on:
push:
branches:
- master
pull_request:
jobs:
generate-matrix:
if: contains(github.event.pull_request.labels.*.name, 'downgrade-ci')
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.genmat.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1'
arch: x64
- run: julia -e 'using Pkg; pkg"add CompatHelperLocal"'
- run: julia -e 'using Pkg; pkg"add ."'
- if: ${{ always() }}
id: genmat
run: |
echo '::echo::on'
julia -e 'import CompatHelperLocal as CHL; import AbstractGPs; projfile = joinpath(pathof(AbstractGPs) |> dirname |> dirname, "Project.toml"); println(CHL.compats_combinations_to_gha_string(CHL.get_compats_combinations(projfile, only_resolveable=true)))'
test:
needs: generate-matrix
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}}
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1'
arch: x64
- run: julia -e 'using Pkg; pkg"add CompatHelperLocal"'
- run: julia -e 'using Pkg; pkg"add ."'
- run: julia -e 'import CompatHelperLocal as CHL; import AbstractGPs; CHL.test_compats_combinations(AbstractGPs, [${{ matrix.compats }}])'
test-simple:
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'downgrade-ci') }}
runs-on: ubuntu-latest
strategy:
matrix:
version: '1'

Check failure on line 48 in .github/workflows/Downgrade-CI.yml

View workflow run for this annotation

GitHub Actions / Downgrade CI

Invalid workflow file

The workflow is not valid. .github/workflows/Downgrade-CI.yml (Line: 48, Col: 18): Unexpected value '1' .github/workflows/Downgrade-CI.yml (Line: 49, Col: 15): Unexpected value 'x64'
arch: x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- uses: cjdoris/julia-downgrade-compat-action@v1
with:
skip: Pkg,TOML
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1