Skip to content

Commit 8d1f2a8

Browse files
authored
Update CI
1 parent a5a9205 commit 8d1f2a8

File tree

1 file changed

+33
-50
lines changed

1 file changed

+33
-50
lines changed

.github/workflows/UnitTest.yml

Lines changed: 33 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,40 @@
1-
name: Unit Tests
2-
1+
name: UnitTests
32
on:
4-
pull_request:
5-
63
push:
7-
branches:
8-
- master
9-
4+
branches: [main, master]
5+
tags: ["*"]
6+
pull_request:
107
jobs:
11-
Test:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
1211
strategy:
1312
fail-fast: false
1413
matrix:
15-
os: [macos-latest, ubuntu-latest]
16-
julia_version: ["1.6", "1", "nightly"]
17-
18-
runs-on: ${{ matrix.os }}
19-
env:
20-
MPICH_INTERFACE_HOSTNAME: localhost
21-
JULIA_MPIEXEC_ARGS: ${{ matrix.mpiexec_args }}
22-
14+
version:
15+
- '1' # automatically expands to the latest stable 1.x release of Julia
16+
- 'min'
17+
- 'pre'
18+
os:
19+
- ubuntu-latest
20+
- windows-latest
21+
arch:
22+
- x64
23+
include:
24+
- os: macOS-latest
25+
arch: aarch64
26+
version: 1
2327
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v2
26-
27-
- name: Install Julia
28-
uses: julia-actions/setup-julia@latest
29-
with:
30-
version: ${{ matrix.julia_version }}
31-
32-
# https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484
33-
- name: Cache artifacts
34-
uses: actions/cache@v1
35-
env:
36-
cache-name: cache-artifacts
37-
with:
38-
path: ~/.julia/artifacts
39-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
40-
restore-keys: |
41-
${{ runner.os }}-test-${{ env.cache-name }}-
42-
${{ runner.os }}-test-
43-
${{ runner.os }}-
44-
45-
- name: "Compat fix for Julia == v1.3.0"
46-
if: ${{ matrix.julia_version == '1.3' }}
47-
run: |
48-
using Pkg
49-
Pkg.add([
50-
PackageSpec(name="Reexport", version="0.2"),
51-
PackageSpec(name="Plots", version="1.6"),
52-
])
53-
# Remove Minio from the test project
54-
write("Project.toml", read(`grep -v '^Minio =' Project.toml`, String))
55-
run(`sed -i -e 's/, "Minio"//' Project.toml`)
56-
shell: julia --project=. --startup=no --color=yes {0}
57-
- uses: julia-actions/julia-runtest@latest
28+
- uses: actions/checkout@v4
29+
- uses: julia-actions/setup-julia@v2
30+
with:
31+
version: ${{ matrix.version }}
32+
arch: ${{ matrix.arch }}
33+
- uses: julia-actions/cache@v2
34+
- uses: julia-actions/julia-buildpkg@v1
35+
- uses: julia-actions/julia-runtest@v1
36+
- uses: julia-actions/julia-processcoverage@v1
37+
- uses: codecov/codecov-action@v5
38+
with:
39+
files: lcov.info
40+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)