From cec023eb86200625e7a8cd76d6a7b6b2db5129a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Fri, 27 Jan 2023 17:03:43 +0000 Subject: [PATCH 1/2] Run MPI tests with `Base.julia_cmd` instead of `Base.julia_exename` This ensures the same optimisation flags are passed to the processes we spawn, which affect cache invalidation. --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 8489ea84..fb8946db 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -820,7 +820,7 @@ end @testset "MPI test -- $(file)" for file in ( "mpi_filtering.jl", "mpi_copy_states.jl", "mpi_summary_statistics.jl" ) - julia = joinpath(Sys.BINDIR, Base.julia_exename()) + julia = Base.julia_cmd() flags = ["--startup-file=no", "-q", "-t$(Base.Threads.nthreads())"] script = joinpath(@__DIR__, file) mpiexec() do mpiexec From 9840f31fca741299bc127b208a35d80334984986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Fri, 27 Jan 2023 17:25:46 +0000 Subject: [PATCH 2/2] [CI] Update some GitHub Actions workflows --- .github/workflows/ci.yml | 7 +++++-- .github/workflows/documentation.yml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a6eb2f1..a96e2d61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - x64 threads: [1, 2] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} @@ -35,5 +35,8 @@ jobs: cache-name: "tests" - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest - - uses: julia-actions/julia-uploadcodecov@v0.1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v3 + with: + file: lcov.info continue-on-error: true diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7aefc9e2..6d0a8a5a 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: julia-actions/cache@v1 with: cache-name: "docs"