Skip to content

Commit b12da18

Browse files
committed
Update CI & README
1 parent 1c47e3e commit b12da18

File tree

3 files changed

+70
-54
lines changed

3 files changed

+70
-54
lines changed

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
9+
tags: '*'
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- '1.0'
19+
- '1' # automatically expands to the latest stable 1.x release of Julia
20+
- 'nightly'
21+
os:
22+
- ubuntu-latest
23+
arch:
24+
- x64
25+
include:
26+
- os: windows-latest
27+
version: '1'
28+
arch: x86
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: julia-actions/setup-julia@v1
32+
with:
33+
version: ${{ matrix.version }}
34+
arch: ${{ matrix.arch }}
35+
- uses: actions/cache@v1
36+
env:
37+
cache-name: cache-artifacts
38+
with:
39+
path: ~/.julia/artifacts
40+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
41+
restore-keys: |
42+
${{ runner.os }}-test-${{ env.cache-name }}-
43+
${{ runner.os }}-test-
44+
${{ runner.os }}-
45+
- uses: julia-actions/julia-buildpkg@v1
46+
- uses: julia-actions/julia-runtest@v1
47+
- uses: julia-actions/julia-processcoverage@v1
48+
- uses: codecov/codecov-action@v1
49+
with:
50+
file: lcov.info
51+
# docs:
52+
# name: Documentation
53+
# runs-on: ubuntu-latest
54+
# steps:
55+
# - uses: actions/checkout@v2
56+
# - uses: julia-actions/setup-julia@v1
57+
# with:
58+
# version: '1'
59+
# - run: |
60+
# julia --project=docs -e '
61+
# using Pkg
62+
# Pkg.develop(PackageSpec(path=pwd()))
63+
# Pkg.instantiate()'
64+
# - run: julia --project=docs docs/make.jl
65+
# env:
66+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# SentinelArrays.jl
22

3+
[![CI](https://github.com/JuliaData/SentinelArrays.jl/workflows/CI/badge.svg)](https://github.com/JuliaData/SentinelArrays.jl/actions?query=workflow%3ACI)
4+
[![codecov](https://codecov.io/gh/JuliaData/SentinelArrays.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaData/SentinelArrays.jl)
5+
36
*Array types that can use sentinel values of the element type for special values*
47

58
## Installation

0 commit comments

Comments
 (0)