From f3137fd1f5c1b7f6f1f163c9a3fd316f07fa4ac0 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 21 Sep 2023 10:19:59 +1200 Subject: [PATCH] Update GitHub actions (#230) --- .github/workflows/aqua.yml | 2 +- .github/workflows/ci.yml | 6 +++--- .github/workflows/documentation.yml | 6 +++--- .github/workflows/downstream.yml | 4 ++-- .github/workflows/format_check.yml | 4 ++-- test/hygiene.jl | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/aqua.yml b/.github/workflows/aqua.yml index 8a5b60f6..ba035560 100644 --- a/.github/workflows/aqua.yml +++ b/.github/workflows/aqua.yml @@ -12,7 +12,7 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1' - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Aqua shell: julia --color=yes {0} run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d435764..c409b7b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,12 +27,12 @@ jobs: os: ubuntu-latest arch: x64 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v1 + - uses: actions/cache@v3 env: cache-name: cache-artifacts with: @@ -45,6 +45,6 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v3 with: file: lcov.info diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index de0bb432..e969e98f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -9,14 +9,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@latest with: version: '1.6' - name: Install dependencies - run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + run: julia --project=docs/ --color=yes -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' - name: Build and deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key - run: julia --project=docs/ docs/make.jl + run: julia --project=docs/ --color=yes docs/make.jl diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index ad93dd83..d264d237 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -15,14 +15,14 @@ jobs: package: - {user: jump-dev, repo: JuMP.jl} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.julia-version }} arch: x64 - uses: julia-actions/julia-buildpkg@latest - name: Clone Downstream - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} path: downstream diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml index 7bb6aed6..481b7976 100644 --- a/.github/workflows/format_check.yml +++ b/.github/workflows/format_check.yml @@ -13,13 +13,13 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1' - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Format check shell: julia --color=yes {0} run: | using Pkg # If you update the version, also update the style guide docs. - Pkg.add(PackageSpec(name="JuliaFormatter", version="0.20.4")) + Pkg.add(PackageSpec(name="JuliaFormatter", version="1")) using JuliaFormatter format(".", verbose=true) out = String(read(Cmd(`git diff`))) diff --git a/test/hygiene.jl b/test/hygiene.jl index e4f569bf..4e0da228 100644 --- a/test/hygiene.jl +++ b/test/hygiene.jl @@ -32,9 +32,9 @@ x = NewSymbolMA.@rewrite sum(i for i in 1:10 if isodd(i)) x = @_rewrite sum(i for i in 1:10 if isodd(i)) @test x == 25 -x = NewSymbolMA.@rewrite sum(i * j for i in 1:4 for j ∈ 1:4 if i == j) +x = NewSymbolMA.@rewrite sum(i * j for i in 1:4 for j in 1:4 if i == j) @test x == 30 -x = @_rewrite sum(i * j for i in 1:4 for j ∈ 1:4 if i == j) +x = @_rewrite sum(i * j for i in 1:4 for j in 1:4 if i == j) @test x == 30 x = big(1)