-
-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (34 loc) · 1.08 KB
/
actions.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
name: CI
on: [pull_request, push]
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.10.0]
julia-arch: [x64]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- julia-version: nightly
os: ubuntu-latest
- julia-version: 1.6.7
os: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- name: runtests
run: |
julia --project=. -e 'using Pkg; Pkg.test()'
Coverage:
needs: Test
if: github.event.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: coverage
run: |
julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'
julia --project=. -e 'using Pkg; Pkg.add("Coverage"); using Coverage; cov = Coverage.process_folder(); mkdir("coverage"); Coverage.LCOV.writefile("coverage/lcov.info", cov)'
- uses: codecov/codecov-action@v1