-
Notifications
You must be signed in to change notification settings - Fork 16
105 lines (83 loc) · 2.34 KB
/
Copy pathTests.yml
File metadata and controls
105 lines (83 loc) · 2.34 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Tests
on: [push]
jobs:
test-linux-v1:
name: test-linux-v1
timeout-minutes: 60
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.13.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@main
- name: Set up Julia
uses: julia-actions/setup-julia@v3
with:
version: '1'
- name: Install Julia Project Packages
run: |
julia --project -e 'using Pkg; Pkg.instantiate()'
- name: Run Unit Tests
run: |
julia --project -e 'using Pkg; Pkg.test(coverage=true)'
- name: Generate coverage file
run: |
julia --project -e 'using Pkg; Pkg.add("Coverage");
using Coverage;
LCOV.writefile("coverage-lcov.info", Codecov.process_folder())'
if: success()
- name: Submit coverage
uses: codecov/codecov-action@v7
with:
token: ${{secrets.CODECOV_TOKEN}}
if: success()
test-macos-v1:
name: test-macos-v1
timeout-minutes: 60
strategy:
fail-fast: true
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.13.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@main
- name: Set up Julia
uses: julia-actions/setup-julia@v3
with:
version: 1
- name: Install Julia Project Packages
run: |
julia --project -e 'using Pkg; Pkg.instantiate()'
- name: Run Unit Tests
run: |
julia --project -e 'using Pkg; Pkg.test()'
test-windows-v1:
name: test-windows-v1
timeout-minutes: 60
strategy:
fail-fast: true
runs-on: windows-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.13.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@main
- name: Set up Julia
uses: julia-actions/setup-julia@v3
with:
version: 1
- name: Install Julia Project Packages
run: |
julia --project -e 'using Pkg; Pkg.instantiate()'
- name: Run Unit Tests
run: |
julia --project -e 'using Pkg; Pkg.test()'