Skip to content

Commit

Permalink
deactivate all tests (for now); try setting up ci like MPI.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Oct 15, 2024
1 parent 596bf88 commit bea7d0a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
tags: '*'
pull_request:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -17,16 +23,11 @@ jobs:
matrix:
version:
- 'lts'
- '1.11'
#- '1.11'
os:
- ubuntu-latest
- windows-latest
arch:
- x64
include:
- os: macOS-latest
arch: aarch64
version: 'lts'
#- ubuntu-latest
#- windows-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
Expand All @@ -43,5 +44,18 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@latest
- name: add MPIPreferences
shell: julia --color=yes --project=. {0}
run: |
using Pkg
Pkg.develop(path="lib/MPIPreferences")
#- uses: julia-actions/julia-buildpkg@latest
- name: use OpenMPI_jll
shell: julia --color=yes --project=test {0}
run: |
using Pkg
Pkg.develop(path="lib/MPIPreferences")
using MPIPreferences
MPIPreferences.use_jll_binary("MPICH_jll", export_prefs=true)
rm("test/Manifest.toml")
- uses: julia-actions/julia-runtest@latest
11 changes: 9 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
using Test
using MPI


do_mpi = true
if Sys.iswindows()
do_mpi = false
end


# Do the MPI tests first so we do not have mpi running inside MPI
# XXX: Currently not working on windows, not sure why
if !Sys.iswindows()
if do_mpi
cmd = `$(mpiexec()) -n 4 $(Base.julia_cmd()) --project dmda.jl`
run(cmd)
success(pipeline(cmd, stderr = stderr))
Expand All @@ -13,7 +20,7 @@ end
# # INCLUDE IN MPI TEST
# will be run here
# XXX: Currently not working on windows reliably, not sure why
if !Sys.iswindows()
if do_mpi
include("mpi_examples.jl")
end

Expand Down

0 comments on commit bea7d0a

Please sign in to comment.