Skip to content

Commit 1e7f451

Browse files
authored
Merge pull request #98 from FluxML/bc/codecov
Add code coverage on CI
2 parents f14ff10 + f6d81e0 commit 1e7f451

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
- windows-latest
2626
arch:
2727
- x64
28+
include:
29+
- version: '1.6' # Minimum supported by Zygote, hopefully nobody is using anything lower
30+
os: ubuntu-latest
31+
arch: x64
2832
steps:
2933
- uses: actions/checkout@v2
3034
- uses: julia-actions/setup-julia@v1
@@ -43,6 +47,14 @@ jobs:
4347
${{ runner.os }}-
4448
- uses: julia-actions/julia-buildpkg@v1
4549
- uses: julia-actions/julia-runtest@v1
50+
with:
51+
coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
52+
- uses: julia-actions/julia-processcoverage@v1
53+
if: matrix.version == '1' && matrix.os == 'ubuntu-latest'
54+
- uses: codecov/codecov-action@v2
55+
if: matrix.version == '1' && matrix.os == 'ubuntu-latest'
56+
with:
57+
file: lcov.info
4658

4759
docs:
4860
name: Documentation

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# IRTools
22

33
[![Build Status](https://travis-ci.org/FluxML/IRTools.jl.svg?branch=master)](https://travis-ci.org/FluxML/IRTools.jl)
4-
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://fluxml.github.io/IRTools.jl/latest/)
4+
[![Dev Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://fluxml.github.io/IRTools.jl/latest/)
5+
[![Coverage](https://codecov.io/gh/FluxML/IRTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/FluxML/IRTools.jl)
56

67
IRTools aims to provide a simple and flexible IR format, expressive enough to work with both lowered and typed Julia code, as well as external IRs. It can be used with Julia metaprogramming tools such as [Cassette](https://github.com/jrevels/Cassette.jl).
78

0 commit comments

Comments
 (0)