Skip to content

Commit 423c311

Browse files
johnnychen94twadleigh
authored andcommitted
add UnitTest CI
1 parent 5e6ac56 commit 423c311

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.github/workflows/ci.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
tags: '*'
9+
10+
jobs:
11+
test:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
julia-version: ['1.3', '1', 'nightly']
17+
os: [ubuntu-latest]
18+
arch: [x64]
19+
include:
20+
- os: windows-latest
21+
julia-version: '1'
22+
arch: x64
23+
- os: macOS-latest
24+
julia-version: '1'
25+
arch: x64
26+
- os: [ubuntu-latest]
27+
julia-version: '1'
28+
arch: x86
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: "Set up Julia"
33+
uses: julia-actions/setup-julia@v1
34+
with:
35+
version: ${{ matrix.julia-version }}
36+
arch: ${{ matrix.arch }}
37+
38+
- name: Cache artifacts
39+
uses: actions/cache@v1
40+
env:
41+
cache-name: cache-artifacts
42+
with:
43+
path: ~/.julia/artifacts
44+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
45+
restore-keys: |
46+
${{ runner.os }}-test-${{ env.cache-name }}-
47+
${{ runner.os }}-test-
48+
${{ runner.os }}-
49+
- name: "Unit Test"
50+
uses: julia-actions/julia-runtest@master
51+
52+
- uses: julia-actions/julia-processcoverage@v1
53+
- uses: codecov/codecov-action@v1
54+
with:
55+
file: lcov.info

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# OpenEXR.jl
2+
3+
[![Build Status](https://github.com/twadleigh/OpenEXR.jl/workflows/CI/badge.svg)](https://github.com/twadleigh/OpenEXR.jl/actions?query=workflow%3A%22CI%22+branch%3Amaster)
4+
[![codecov.io](http://codecov.io/github/twadleigh/OpenEXR.jl/coverage.svg?branch=master)](http://codecov.io/github/twadleigh/OpenEXR.jl?branch=master)
5+
26
Saving and loading of OpenEXR files.
37

48
Basic usage:

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ using Test, OpenEXR, FileIO, Colors, FixedPointNumbers
6262
end
6363
end
6464
end
65-
end
65+
end

0 commit comments

Comments
 (0)