Skip to content

Commit 36e3bae

Browse files
authored
switch CI to github actions (#159)
1 parent c3336c8 commit 36e3bae

File tree

4 files changed

+70
-58
lines changed

4 files changed

+70
-58
lines changed

.github/workflows/UnitTest.yml

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

.travis.yml

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

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# OffsetArrays.jl
22

3-
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaArrays.github.io/OffsetArrays.jl/stable)
4-
[![Build Status](https://travis-ci.org/JuliaArrays/OffsetArrays.jl.svg?branch=master)](https://travis-ci.org/JuliaArrays/OffsetArrays.jl)
5-
[![codecov.io](http://codecov.io/github/JuliaArrays/OffsetArrays.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaArrays/OffsetArrays.jl?branch=master)
6-
[![PkgEval][pkgeval-img]][pkgeval-url]
3+
[![][action-img]][action-url]
4+
[![][pkgeval-img]][pkgeval-url]
5+
[![][codecov-img]][codecov-url]
6+
[![][docs-stable-img]][docs-stable-url]
7+
[![][docs-dev-img]][docs-dev-url]
78

89

910
OffsetArrays provides Julia users with arrays that have arbitrary
@@ -43,5 +44,18 @@ julia> OA[-1,0], OA[1,4]
4344
(1.0, 15.0)
4445
```
4546

47+
<!-- badges -->
48+
4649
[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/O/OffsetArrays.svg
4750
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
51+
52+
[action-img]: https://github.com/JuliaArrays/OffsetArrays.jl/workflows/Unit%20test/badge.svg
53+
[action-url]: https://github.com/JuliaArrays/OffsetArrays.jl/actions
54+
55+
[codecov-img]: https://codecov.io/github/JuliaArrays/OffsetArrays.jl/coverage.svg?branch=master
56+
[codecov-url]: https://codecov.io/gh/JuliaArrays/OffsetArrays.jl
57+
58+
[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
59+
[docs-stable-url]: https://juliaarrays.github.io/OffsetArrays.jl/stable/
60+
[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
61+
[docs-dev-url]: https://juliaarrays.github.io/OffsetArrays.jl/dev/

appveyor.yml

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

0 commit comments

Comments
 (0)