Skip to content

Commit 95f2578

Browse files
authored
Migrate to github actions for CI (#752)
1 parent 5b2fc41 commit 95f2578

File tree

6 files changed

+83
-83
lines changed

6 files changed

+83
-83
lines changed

.github/workflows/TagBot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ jobs:
99
- uses: JuliaRegistries/TagBot@v1
1010
with:
1111
token: ${{ secrets.GITHUB_TOKEN }}
12+
# Workaround for https://github.com/JuliaDocs/Documenter.jl/issues/1177
13+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags: '*'
7+
pull_request:
8+
jobs:
9+
test:
10+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
version:
15+
- '1.0'
16+
- '1.1'
17+
- '1.2'
18+
- '1.3'
19+
- 'nightly'
20+
os:
21+
- ubuntu-latest
22+
- macOS-latest
23+
- windows-latest
24+
arch:
25+
- x86
26+
- x64
27+
exclude:
28+
# Remove some configurations from the build matrix to reduce CI time.
29+
# See https://github.com/marketplace/actions/setup-julia-environment
30+
# MacOS not available on x86
31+
- {os: 'macOS-latest', arch: 'x86'}
32+
# Don't test on all versions
33+
- {os: 'macOS-latest', version: '1.1'}
34+
- {os: 'macOS-latest', version: '1.2'}
35+
- {os: 'windows-latest', version: '1.1'}
36+
- {os: 'windows-latest', version: '1.2'}
37+
steps:
38+
- uses: actions/checkout@v1
39+
- uses: julia-actions/setup-julia@latest
40+
with:
41+
version: ${{ matrix.version }}
42+
arch: ${{ matrix.arch }}
43+
- uses: julia-actions/julia-buildpkg@latest
44+
- uses: julia-actions/julia-runtest@latest
45+
- uses: julia-actions/julia-uploadcodecov@latest
46+
env:
47+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
48+
docs:
49+
name: Documentation
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v1
53+
- uses: julia-actions/setup-julia@latest
54+
with:
55+
version: '1.3'
56+
- run: julia --project=docs -e '
57+
using Pkg;
58+
Pkg.develop(PackageSpec(; path=pwd()));
59+
Pkg.instantiate();'
60+
- run: julia --project=docs docs/make.jl
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
# Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177
64+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

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

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
*Statically sized arrays for Julia*
44

5-
[![Build Status](https://travis-ci.org/JuliaArrays/StaticArrays.jl.svg?branch=master)](https://travis-ci.org/JuliaArrays/StaticArrays.jl)
6-
[![Build status](https://ci.appveyor.com/api/projects/status/xabgh1yhsjxlp30d?svg=true)](https://ci.appveyor.com/project/JuliaArrays/staticarrays-jl)
5+
[![Build Status](https://github.com/JuliaArrays/StaticArrays.jl/workflows/CI/badge.svg)](https://github.com/JuliaArrays/StaticArrays.jl/actions?query=workflow%3ACI)
76
[![Coverage Status](https://coveralls.io/repos/github/JuliaArrays/StaticArrays.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaArrays/StaticArrays.jl?branch=master)
87
[![codecov.io](https://codecov.io/github/JuliaArrays/StaticArrays.jl/branch/master/graph/badge.svg)](http://codecov.io/github/JuliaArrays/StaticArrays.jl/branch/master)
9-
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaArrays.github.io/StaticArrays.jl/latest)
10-
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaArrays.github.io/StaticArrays.jl/stable)
8+
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaArrays.github.io/StaticArrays.jl/stable)
9+
[![Dev](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaArrays.github.io/StaticArrays.jl/latest)
1110

1211
**StaticArrays** provides a framework for implementing statically sized arrays
1312
in Julia, using the abstract type `StaticArray{Size,T,N} <: AbstractArray{T,N}`.

appveyor.yml

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

test/SHermitianCompact.jl

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ end
4040

4141
fill3(x) = fill(3, x)
4242

43+
# @allocated behaves differently on 1.4, but the differences appear spurious in
44+
# practice. See
45+
# https://github.com/JuliaArrays/StaticArrays.jl/issues/710
46+
allocated_workaround = VERSION >= v"1.4-DEV"
47+
4348
@testset "SHermitianCompact" begin
4449
@testset "Inner Constructor" begin
4550
for (N, L) in ((3, 6), (4, 10), (6, 21))
@@ -159,7 +164,9 @@ fill3(x) = fill(3, x)
159164
let a = a
160165
@test -a == -SMatrix(a)
161166
@test -a isa SHermitianCompact{3, Int, 6}
162-
@test_noalloc -a
167+
if !allocated_workaround
168+
@test_noalloc -a
169+
end
163170
end
164171
for (x, y) in ((a, b), (a, c), (c, a))
165172
@eval begin
@@ -203,11 +210,15 @@ fill3(x) = fill(3, x)
203210
let a = SHermitianCompact(SVector{21, Int}(1 : 21))
204211
@test a + 3I == SMatrix(a) + 3I
205212
@test a + 3I isa typeof(a)
206-
@test_noalloc a + 3I
213+
if !allocated_workaround
214+
@test_noalloc a + 3I
215+
end
207216

208217
@test a - 4I == SMatrix(a) - 4I
209218
@test a - 4I isa typeof(a)
210-
@test_noalloc a - 4I
219+
if !allocated_workaround
220+
@test_noalloc a - 4I
221+
end
211222

212223
@test a * 3I === a * 3
213224
@test 3I * a === 3 * a

0 commit comments

Comments
 (0)