|
1 | 1 | 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] |
12 | 3 |
|
13 | 4 | jobs:
|
14 | 5 | test:
|
15 |
| - runs-on: ${{ matrix.os }} |
| 6 | + runs-on: Julia ${{ matrix.version }} - ${{ matrix.os }} |
16 | 7 | strategy:
|
17 | 8 | fail-fast: false
|
18 | 9 | 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' |
21 | 21 |
|
22 | 22 | steps:
|
23 |
| - |
24 |
| - - name: "Set up Julia" |
25 |
| - uses: julia-actions/setup-julia@v1 |
| 23 | + - uses: actions/checkout@v2 |
| 24 | + - uses: julia-actions/setup-julia@v1 |
26 | 25 | 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 }} |
36 | 27 | - name: Cache artifacts
|
37 | 28 | uses: actions/cache@v1
|
38 | 29 | env:
|
|
44 | 35 | ${{ runner.os }}-test-${{ env.cache-name }}-
|
45 | 36 | ${{ runner.os }}-test-
|
46 | 37 | ${{ 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 |
49 | 40 |
|
50 | 41 | # Unless tokenless upload is enabled, we can only submit coverage via
|
51 | 42 | # environment variable. But PRs from other fork can't do that.
|
|
0 commit comments