-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (45 loc) · 1.29 KB
/
test.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
name: Run tests
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version:
- '1.7'
- '1.6'
- 'nightly'
envname: ["main"]
include:
- julia-version: '1.5'
envname: "jl14"
- julia-version: '1.4'
envname: "jl14"
- julia-version: '1.0'
envname: "jl10"
- julia-version: '1.0'
envname: "old"
fail-fast: false
name: Test Julia ${{ matrix.julia-version }}
steps:
- uses: actions/checkout@v2
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
# Use `JULIA_PKG_SERVER` mitigation implemented in julia-buildpkg:
- uses: julia-actions/julia-buildpkg@v1
- run: julia -e 'using Pkg; pkg"add [email protected]"'
- run: julia -e 'using Run; Run.prepare("test/environments/${{ matrix.envname }}")'
- run: julia -e 'using Run; Run.test(project="test/environments/${{ matrix.envname }}")'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: ./lcov.info
flags: unittests
name: codecov-umbrella