-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (48 loc) · 1.61 KB
/
Tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Tests
# Do not run tests when docs change.
# (Note that there is a separate CI for doctest).
on:
push:
branches: ['main']
paths:
- src/**
- test/**
- Project.toml
- .github/workflows/Tests.yml
tags: ['*']
pull_request:
# There doesn't seem to be a way to reuse the above paths filter here too, without
# copy-pasting: https://stackoverflow.com/q/62113095
concurrency:
# With 'concurrency', only a single workflow in the same group will run at a time.
group: ${{ github.workflow }}-${{ github.ref }} # `ref` is the branch name.
# When pushing multiple new commits, only the newest commit will be built.
# An in-progress build will finish running first..
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
# ..unless it's on a pull-request branch, then in-progress builds are cancelled.
jobs:
test:
name: Julia ${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- '1.7'
- '1.8'
# - '1' # = Newest stable Julia version
# - '1.9' # Not out yet
- 'nightly'
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v1
with:
cache-compiled: true
# See https://github.com/julia-actions/cache#inputs and the linked #11
- uses: julia-actions/julia-runtest@v1
with:
annotate: true
# ↪ Adds inline 'annotations' in PR reviews, which point to failing tests.