From d702bc52d605f97550666a44673b14aac34baf38 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 9 May 2025 23:27:44 +0800 Subject: [PATCH 1/7] ci: update github actions --- .github/workflows/CI.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e96e03f..05522d2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,22 +27,10 @@ jobs: - os: macOS-latest arch: x86 steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: actions/cache@v2 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}- - ${{ runner.os }}-${{ matrix.arch }}-test- - ${{ runner.os }}-${{ matrix.arch }}- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - From bdf69d54fa0c2528317a92cce88b767cb41d84e2 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 9 May 2025 23:29:11 +0800 Subject: [PATCH 2/7] Fix UndefVarError in `@test_msg` --- src/output_control.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/output_control.jl b/src/output_control.jl index d9eba57..b0bd797 100644 --- a/src/output_control.jl +++ b/src/output_control.jl @@ -1,6 +1,12 @@ # Test.get_test_result generates code that uses the following so we must import them using Test: Returned, Threw, eval_test +@static if VERSION >= v"1.13.0-DEV.300" + # https://github.com/JuliaLang/julia/commit/d934b032ea5bf63b353371ad285605128c735873 + # used by `Test.do_test` in `macro test_msg` + using Test: eval_test_comparison +end + "A cunning hack to carry extra message along with the original expression in a test" struct ExprAndMsg ex From e7512ae546add8b94b056798789c7c8cc8a6dc32 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 9 May 2025 23:38:57 +0800 Subject: [PATCH 3/7] Fix UndefVarError: `eval_test_function` not defined --- src/output_control.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output_control.jl b/src/output_control.jl index b0bd797..c1eb5b3 100644 --- a/src/output_control.jl +++ b/src/output_control.jl @@ -4,7 +4,7 @@ using Test: Returned, Threw, eval_test @static if VERSION >= v"1.13.0-DEV.300" # https://github.com/JuliaLang/julia/commit/d934b032ea5bf63b353371ad285605128c735873 # used by `Test.do_test` in `macro test_msg` - using Test: eval_test_comparison + using Test: eval_test_comparison, eval_test_function end "A cunning hack to carry extra message along with the original expression in a test" From 1b3f3e266efc09a5ac90176bc7e7c78ffe1d97f8 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 9 May 2025 23:39:14 +0800 Subject: [PATCH 4/7] ci: Update Documenter.yml --- .github/workflows/Documenter.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml index 8235e51..e2a15d5 100644 --- a/.github/workflows/Documenter.yml +++ b/.github/workflows/Documenter.yml @@ -10,11 +10,11 @@ jobs: name: Documentation runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: - version: '1.6' - - uses: julia-actions/julia-docdeploy@latest + version: '1.10' + - uses: julia-actions/julia-docdeploy@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} From 81c2f0ac5f21fe2ef85c27ab5fb2a7c14785d030 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 9 May 2025 23:42:19 +0800 Subject: [PATCH 5/7] ci: Update JuliaNightly.yml --- .github/workflows/JuliaNightly.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/JuliaNightly.yml b/.github/workflows/JuliaNightly.yml index 951a1a2..d380a66 100644 --- a/.github/workflows/JuliaNightly.yml +++ b/.github/workflows/JuliaNightly.yml @@ -7,27 +7,22 @@ on: branches: [master] tags: ["*"] pull_request: + jobs: test: name: Julia Nightly - Ubuntu - x64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: nightly - arch: x64 - - uses: actions/cache@v2 - env: - cache-name: julia-nightly-cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ env.cache-name }}- - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/cache@v2 + - 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@v5 + continue-on-error: true with: + token: ${{ secrets.CODECOV_TOKEN }} # required file: lcov.info From 8ba30d2d31f11dab061535ec0f2b41afec66f5a7 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 9 May 2025 23:44:56 +0800 Subject: [PATCH 6/7] ci: Update fix_doctests.yml --- .github/workflows/fix_doctests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fix_doctests.yml b/.github/workflows/fix_doctests.yml index 5ca114d..d29c51b 100644 --- a/.github/workflows/fix_doctests.yml +++ b/.github/workflows/fix_doctests.yml @@ -7,12 +7,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - julia-version: [1.6] + julia-version: '1.10' steps: + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest with: version: ${{ matrix.julia-version }} - - uses: actions/checkout@v1 - name: Fix doctests shell: julia --project=docs/ {0} run: | From f7fc032102a1277af1e03d4b8aefff690519c091 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Fri, 9 May 2025 23:45:49 +0800 Subject: [PATCH 7/7] ci: use default arch --- .github/workflows/CI.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 05522d2..c1c752d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,19 +13,12 @@ jobs: fail-fast: false matrix: version: - - "1.0" # LTS - - "1" # Latest Release + - "lts" + - "1" # Latest Release os: - ubuntu-latest - - macOS-latest + - macOS-latest # Apple silicon - windows-latest - arch: - - x86 - - x64 - exclude: - # 32-bit Julia binaries are not available on macOS - - os: macOS-latest - arch: x86 steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2