Skip to content

Commit bf961cf

Browse files
authored
switch CI to github actions (#197)
1 parent 9b91d54 commit bf961cf

File tree

3 files changed

+76
-37
lines changed

3 files changed

+76
-37
lines changed

.github/workflows/UnitTest.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Unit test
2+
3+
on:
4+
create:
5+
tags:
6+
push:
7+
branches:
8+
- master
9+
paths-ignore:
10+
- 'LICENSE.md'
11+
- 'README.md'
12+
- '.github/workflows/TagBot.yml'
13+
pull_request:
14+
paths-ignore:
15+
- 'LICENSE.md'
16+
- 'README.md'
17+
- '.github/workflows/TagBot.yml'
18+
19+
jobs:
20+
test:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
# allow-failure is not supported yet
24+
# https://github.com/actions/toolkit/issues/399
25+
fail-fast: false
26+
matrix:
27+
julia-version: ['1.0', '1', 'nightly']
28+
os: [ubuntu-latest, windows-latest, macOS-latest]
29+
julia-arch: [x64]
30+
# only test one 32-bit job
31+
include:
32+
- os: ubuntu-latest
33+
julia-version: '1'
34+
julia-arch: x86
35+
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: "Set up Julia"
39+
uses: julia-actions/setup-julia@v1
40+
with:
41+
version: ${{ matrix.julia-version }}
42+
arch: ${{ matrix.julia-arch }}
43+
44+
- name: Cache artifacts
45+
uses: actions/cache@v1
46+
env:
47+
cache-name: cache-artifacts
48+
with:
49+
path: ~/.julia/artifacts
50+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
51+
restore-keys: |
52+
${{ runner.os }}-test-${{ env.cache-name }}-
53+
${{ runner.os }}-test-
54+
${{ runner.os }}-
55+
- name: "Unit Test"
56+
uses: julia-actions/julia-runtest@v1
57+
58+
- uses: julia-actions/julia-processcoverage@v1
59+
- uses: codecov/codecov-action@v1
60+
with:
61+
file: lcov.info

.travis.yml

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

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# AxisArrays.jl
22

3-
[![Build Status](https://travis-ci.org/JuliaArrays/AxisArrays.jl.svg?branch=master)](https://travis-ci.org/JuliaArrays/AxisArrays.jl) [![Coverage Status](https://coveralls.io/repos/github/JuliaArrays/AxisArrays.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaArrays/AxisArrays.jl?branch=master)
3+
[![][action-img]][action-url]
4+
[![][pkgeval-img]][pkgeval-url]
5+
[![][codecov-img]][codecov-url]
46

57
This package for the Julia language provides an array type (the `AxisArray`) that knows about its dimension names and axis values.
68
This allows for indexing by name without incurring any runtime overhead.
@@ -272,3 +274,15 @@ meanz = sumz/Itotal
272274
```
273275

274276
The intention is that all of these operations are just as efficient as they would be if you used traditional position-based indexing with all the inherent assumptions about the storage order of `B`.
277+
278+
279+
<!-- badges -->
280+
281+
[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/A/AxisArrays.svg
282+
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
283+
284+
[action-img]: https://github.com/JuliaArrays/AxisArrays.jl/workflows/Unit%20test/badge.svg
285+
[action-url]: https://github.com/JuliaArrays/AxisArrays.jl/actions
286+
287+
[codecov-img]: https://codecov.io/github/JuliaArrays/AxisArrays.jl/coverage.svg?branch=master
288+
[codecov-url]: https://codecov.io/gh/JuliaArrays/AxisArrays.jl

0 commit comments

Comments
 (0)