Skip to content

Commit a83a830

Browse files
committed
update some unit tests
1 parent 186bb4c commit a83a830

File tree

2 files changed

+33
-38
lines changed

2 files changed

+33
-38
lines changed

.github/workflows/UnitTests.yml

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ jobs:
1717
- ubuntu-latest
1818
- windows-latest
1919
julia_version:
20-
# Unsupported - "1.3"
21-
# Unsupported - "1.4"
22-
# Unsupported - "1.5"
2320
- "1.6"
24-
- "1.7"
21+
- "1"
2522
- "nightly"
2623
julia_arch: [x64, x86]
2724
exclude:
@@ -61,6 +58,8 @@ jobs:
6158
${{ runner.os }}-test-
6259
${{ runner.os }}-
6360
61+
- name: "add MPIPreferences"
62+
run: julia --project -e 'using Pkg; Pkg.develop(path="lib/MPIPreferences")
6463
- uses: julia-actions/julia-buildpkg@latest
6564
- uses: julia-actions/julia-runtest@latest
6665

@@ -73,10 +72,7 @@ jobs:
7372
#BROKEN - mpich
7473
- openmpi
7574
julia_version:
76-
- "1.6"
77-
# We don't need to test all combinations
78-
# - "1.7"
79-
# - "nightly"
75+
- "1"
8076

8177
fail-fast: false
8278

@@ -117,6 +113,10 @@ jobs:
117113
${{ runner.os }}-test-
118114
${{ runner.os }}-
119115
116+
- name: "add MPIPreferences"
117+
run: julia --project -e 'using Pkg; Pkg.develop(path="lib/MPIPreferences")
118+
- name: "Use system binary"
119+
run: julia --project -e 'using MPIPreferences; MPIPreferences.use_system_binary()
120120
- uses: julia-actions/julia-buildpkg@latest
121121
- uses: julia-actions/julia-runtest@latest
122122
env:
@@ -132,10 +132,7 @@ jobs:
132132
- libmpich-dev
133133
- libopenmpi-dev
134134
julia_version:
135-
- "1.6"
136-
# We don't need to test all combinations
137-
# - "1.7"
138-
# - "nightly"
135+
- "1"
139136

140137
fail-fast: false
141138

@@ -176,7 +173,10 @@ jobs:
176173
${{ runner.os }}-test-${{ env.cache-name }}-
177174
${{ runner.os }}-test-
178175
${{ runner.os }}-
179-
176+
- name: "add MPIPreferences"
177+
run: julia --project -e 'using Pkg; Pkg.develop(path="lib/MPIPreferences")
178+
- name: "Use system binary"
179+
run: julia --project -e 'using MPIPreferences; MPIPreferences.use_system_binary()
180180
- uses: julia-actions/julia-buildpkg@latest
181181
- uses: julia-actions/julia-runtest@latest
182182

@@ -186,10 +186,7 @@ jobs:
186186
strategy:
187187
matrix:
188188
julia_version:
189-
- "1.6"
190-
# We don't need to test all combinations
191-
# - "1.7"
192-
# - "nightly"
189+
- "1"
193190

194191
fail-fast: false
195192

@@ -220,7 +217,7 @@ jobs:
220217
run: wget https://registrationcenter-download.intel.com/akdlm/irc_nas/tec/17263/l_mpi_2019.9.304.tgz
221218

222219
- name: Install Intel MPI
223-
run: |
220+
run: |
224221
tar -xzf l_mpi_2019.9.304.tgz
225222
pushd l_mpi_2019.9.304
226223
cat << EOF > intel.conf
@@ -253,7 +250,7 @@ jobs:
253250
${{ runner.os }}-
254251
255252
# we can't use the usual actions here as we need to ensure the environment variables are set
256-
- name: "Build package"
253+
- name: "Build package"
257254
run: |
258255
source ${HOME}/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh release
259256
julia --project -e 'using Pkg; Pkg.instantiate(verbose=true); Pkg.build(verbose=true)'
@@ -268,10 +265,7 @@ jobs:
268265
strategy:
269266
matrix:
270267
julia_version:
271-
- "1.6"
272-
# We don't need to test all combinations
273-
# - "1.7"
274-
# - "nightly"
268+
- "1"
275269

276270
fail-fast: false
277271

@@ -387,31 +381,31 @@ jobs:
387381
# - "1.6"
388382
# - "1.7"
389383
# - "nightly"
390-
#
384+
#
391385
# fail-fast: false
392-
#
386+
#
393387
# runs-on: macos-latest
394-
#
388+
#
395389
# env:
396390
# JULIA_MPI_BINARY: MPItrampoline_jll
397391
# MPITRAMPOLINE_VERBOSE: 1 #TODO
398392
# MPITRAMPOLINE_LIB: /usr/local/lib/libmpiwrapper.so
399393
# MPITRAMPOLINE_MPIEXEC: /usr/local/bin/mpiexec
400-
#
394+
#
401395
# steps:
402396
# - name: Cancel Previous Runs
403397
# uses: styfle/[email protected]
404398
# with:
405399
# access_token: ${{ github.token }}
406-
#
400+
#
407401
# - name: Checkout
408402
# uses: actions/[email protected]
409-
#
403+
#
410404
# - name: Install Homebrew packages
411405
# run: brew install autoconf automake
412406
# env:
413407
# MPI: ${{ matrix.mpi }}
414-
#
408+
#
415409
# # We cannot install MPICH or OpenMPI via Homebrew or MacPorts,
416410
# # since the MPI libraries there use a flat namespace, which means
417411
# # that they cannot be loaded as plugin. We need to build the
@@ -433,7 +427,7 @@ jobs:
433427
# FC=gfortran-11 \
434428
# FFLAGS=-fallow-argument-mismatch \
435429
# FCFLAGS=-fallow-argument-mismatch
436-
# make -j$(nproc)
430+
# make -j$(nproc)
437431
# sudo make -j$(nproc) install
438432
# ;;
439433
# openmpi)
@@ -447,13 +441,13 @@ jobs:
447441
# CC=gcc-11 \
448442
# CXX=g++-11 \
449443
# FC=gfortran-11
450-
# make -j$(nproc)
444+
# make -j$(nproc)
451445
# sudo make -j$(nproc) install
452446
# ;;
453447
# esac
454448
# env:
455449
# MPI: ${{ matrix.mpi }}
456-
#
450+
#
457451
# - name: Build MPIwrapper
458452
# run: |
459453
# wget https://github.com/eschnett/MPIwrapper/archive/refs/tags/v2.2.1.tar.gz
@@ -484,11 +478,11 @@ jobs:
484478
# # .
485479
# cmake --build .
486480
# sudo cmake --install .
487-
#
481+
#
488482
# - uses: julia-actions/setup-julia@latest
489483
# with:
490484
# version: ${{ matrix.julia_version }}
491-
#
485+
#
492486
# # https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484
493487
# - name: Cache artifacts
494488
# uses: actions/cache@v1
@@ -501,7 +495,7 @@ jobs:
501495
# ${{ runner.os }}-test-${{ env.cache-name }}-
502496
# ${{ runner.os }}-test-
503497
# ${{ runner.os }}-
504-
#
498+
#
505499
# - uses: julia-actions/julia-buildpkg@latest
506500
# - uses: julia-actions/julia-runtest@latest
507501

@@ -613,7 +607,7 @@ jobs:
613607
run: wget https://registrationcenter-download.intel.com/akdlm/irc_nas/tec/17263/l_mpi_2019.9.304.tgz
614608

615609
- name: Install Intel MPI
616-
run: |
610+
run: |
617611
tar -xzf l_mpi_2019.9.304.tgz
618612
pushd l_mpi_2019.9.304
619613
cat << EOF > intel.conf
@@ -660,7 +654,7 @@ jobs:
660654
${{ runner.os }}-
661655
662656
# We can't use the usual actions here as we need to ensure the environment variables are set
663-
- name: "Build package"
657+
- name: "Build package"
664658
run: |
665659
source ${HOME}/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh release
666660
julia --project -e 'using Pkg; Pkg.instantiate(verbose=true); Pkg.build(verbose=true)'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ libjuliampi.dylib
55
*.mem
66
*.so
77
Manifest.toml
8+
LocalPreferences.toml

0 commit comments

Comments
 (0)