-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (36 loc) · 981 Bytes
/
CodeCov.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
name: CodeCov
on:
push:
branches:
- main
- trying
- staging
tags: '*'
pull_request:
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Julia
uses: julia-actions/setup-julia@latest
with:
version: 1.8.1
- name: Test with coverage
env:
JULIA_PROJECT: "@."
run: |
julia --project=@. -e 'using Pkg; Pkg.instantiate()'
julia --project=@. -e 'using Pkg; Pkg.test(coverage=true)'
- name: Generate coverage file
env:
JULIA_PROJECT: "@."
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/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
if: success()