Skip to content

Commit e3eafce

Browse files
t-bltgjohnnychen94
authored andcommitted
CI(UnitTest): replace Julia 1.0 with 1.6
Except for the simplification and template upgrades, there are two worth-noting changes in this commit: - replaces Julia 1.0 with Julia 1.6 (the new LTS version). - only test windows/macOS on Julia 1
1 parent 4cd5beb commit e3eafce

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

.github/workflows/UnitTest.yml

+21-23
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
11
name: Unit test
2-
32
on:
43
create:
54
tags:
65
push:
76
branches:
87
- master
98
pull_request:
10-
schedule:
11-
- cron: '20 00 1 * *'
9+
defaults:
10+
run:
11+
shell: bash
1212

1313
jobs:
1414
test:
15+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
1517
runs-on: ${{ matrix.os }}
1618
strategy:
1719
fail-fast: false
1820
matrix:
19-
julia-version: ['1.0', '1', 'nightly']
20-
os: [ubuntu-latest, windows-latest, macOS-latest]
21+
version:
22+
- '1.6' # oldest supported in Project.toml
23+
- '1' # latest stable
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
include: # spare windows/macos CI credits
28+
- os: windows-latest
29+
version: '1'
30+
- os: macOS-latest
31+
version: '1'
2132

2233
steps:
23-
- uses: actions/[email protected]
24-
- name: "Set up Julia"
25-
uses: julia-actions/setup-julia@v1
34+
- uses: actions/checkout@v2
35+
- uses: julia-actions/setup-julia@v1
2636
with:
27-
version: ${{ matrix.julia-version }}
28-
- name: "Compat fix for Julia < v1.3.0"
29-
if: ${{ matrix.julia-version == '1.0' }}
30-
run: |
31-
using Pkg
32-
Pkg.add([
33-
PackageSpec(name="AbstractFFTs", version="0.5"),
34-
])
35-
shell: julia --project=. --startup=no --color=yes {0}
37+
version: ${{ matrix.version }}
3638
- name: Cache artifacts
3739
uses: actions/cache@v1
3840
env:
@@ -44,9 +46,5 @@ jobs:
4446
${{ runner.os }}-test-${{ env.cache-name }}-
4547
${{ runner.os }}-test-
4648
${{ runner.os }}-
47-
- name: "Unit Test"
48-
uses: julia-actions/julia-runtest@master
49-
50-
# Unless tokenless upload is enabled, we can only submit coverage via
51-
# environment variable. But PRs from other fork can't do that.
52-
# See issue: https://github.com/julia-actions/julia-uploadcodecov/issues/1
49+
- uses: julia-actions/julia-buildpkg@v1
50+
- uses: julia-actions/julia-runtest@v1

0 commit comments

Comments
 (0)