Merge pull request #141 from ldeso/Fix-docs #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
Test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
julia_version: ["1.6", "1", "nightly"] | |
runs-on: ${{ matrix.os }} | |
env: | |
MPICH_INTERFACE_HOSTNAME: localhost | |
JULIA_MPIEXEC_ARGS: ${{ matrix.mpiexec_args }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Julia | |
uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.julia_version }} | |
# https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484 | |
- name: Cache artifacts | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-artifacts | |
with: | |
path: ~/.julia/artifacts | |
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | |
restore-keys: | | |
${{ runner.os }}-test-${{ env.cache-name }}- | |
${{ runner.os }}-test- | |
${{ runner.os }}- | |
- name: "Compat fix for Julia == v1.3.0" | |
if: ${{ matrix.julia_version == '1.3' }} | |
run: | | |
using Pkg | |
Pkg.add([ | |
PackageSpec(name="Reexport", version="0.2"), | |
PackageSpec(name="Plots", version="1.6"), | |
]) | |
# Remove Minio from the test project | |
write("Project.toml", read(`grep -v '^Minio =' Project.toml`, String)) | |
run(`sed -i -e 's/, "Minio"//' Project.toml`) | |
shell: julia --project=. --startup=no --color=yes {0} | |
- uses: julia-actions/julia-runtest@latest |