Skip to content

Commit 73242eb

Browse files
committed
spare CI on MacOS and windows
1 parent 30d250e commit 73242eb

File tree

1 file changed

+18
-27
lines changed

1 file changed

+18
-27
lines changed

.github/workflows/UnitTest.yml

+18-27
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
11
name: Unit test
2-
3-
on:
4-
create:
5-
tags:
6-
push:
7-
branches:
8-
- master
9-
pull_request:
10-
schedule:
11-
- cron: '20 00 1 * *'
2+
on: [push, pull_request]
123

134
jobs:
145
test:
15-
runs-on: ${{ matrix.os }}
6+
runs-on: Julia ${{ matrix.version }} - ${{ matrix.os }}
167
strategy:
178
fail-fast: false
189
matrix:
19-
julia-version: ['1.0', '1', 'nightly']
20-
os: [ubuntu-latest, windows-latest, macOS-latest]
10+
version:
11+
- '1.0' # oldest supported in Project.toml
12+
- '1' # latest stable
13+
- 'nightly'
14+
os:
15+
- ubuntu-latest
16+
include: # spare windows/macos CI credits
17+
- os: windows-latest
18+
version: '1'
19+
- os: macOS-latest
20+
version: '1'
2121

2222
steps:
23-
- uses: actions/[email protected]
24-
- name: "Set up Julia"
25-
uses: julia-actions/setup-julia@v1
23+
- uses: actions/checkout@v2
24+
- uses: julia-actions/setup-julia@v1
2625
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}
26+
version: ${{ matrix.version }}
3627
- name: Cache artifacts
3728
uses: actions/cache@v1
3829
env:
@@ -44,8 +35,8 @@ jobs:
4435
${{ runner.os }}-test-${{ env.cache-name }}-
4536
${{ runner.os }}-test-
4637
${{ runner.os }}-
47-
- name: "Unit Test"
48-
uses: julia-actions/julia-runtest@master
38+
- uses: julia-actions/julia-buildpkg@v1
39+
- uses: julia-actions/julia-runtest@v1
4940

5041
# Unless tokenless upload is enabled, we can only submit coverage via
5142
# environment variable. But PRs from other fork can't do that.

0 commit comments

Comments
 (0)