Skip to content

Commit 5df4174

Browse files
authored
Merge pull request #189 from Roger-luo/github-actions
switch to GitHub actions
2 parents 343ea17 + b2a1845 commit 5df4174

File tree

3 files changed

+75
-26
lines changed

3 files changed

+75
-26
lines changed

.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+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- '1.0'
14+
- '1.5'
15+
- 'nightly'
16+
os:
17+
- ubuntu-latest
18+
arch:
19+
- x64
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: ${{ matrix.version }}
25+
arch: ${{ matrix.arch }}
26+
- uses: actions/cache@v1
27+
env:
28+
cache-name: cache-artifacts
29+
with:
30+
path: ~/.julia/artifacts
31+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32+
restore-keys: |
33+
${{ runner.os }}-test-${{ env.cache-name }}-
34+
${{ runner.os }}-test-
35+
${{ runner.os }}-
36+
- uses: julia-actions/julia-buildpkg@v1
37+
- uses: julia-actions/julia-runtest@v1
38+
- uses: julia-actions/julia-processcoverage@v1
39+
- uses: codecov/codecov-action@v1
40+
with:
41+
file: lcov.info
42+
# docs:
43+
# name: Documentation
44+
# runs-on: ubuntu-latest
45+
# steps:
46+
# - uses: actions/checkout@v2
47+
# - uses: julia-actions/setup-julia@v1
48+
# with:
49+
# version: '1'
50+
# - run: |
51+
# julia --project=docs -e '
52+
# using Pkg
53+
# Pkg.develop(PackageSpec(path=pwd()))
54+
# Pkg.instantiate()'
55+
# - run: |
56+
# julia --project=docs -e '
57+
# using Documenter: DocMeta, doctest
58+
# using BenchmarkSets
59+
# DocMeta.setdocmeta!(BenchmarkSets, :DocTestSetup, :(using BenchmarkSets); recursive=true)
60+
# doctest(BenchmarkSets)'
61+
# - run: julia --project=docs docs/make.jl
62+
# env:
63+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

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

test/TrialsTests.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,20 @@ BenchmarkTools.TrialEstimate:
214214

215215
@test sprint(show, [ta, tb]) == "BenchmarkTools.TrialEstimate[0.490 ns, 1.000 ns]"
216216

217+
@static if VERSION < v"1.6-"
218+
217219
@test sprint(show, "text/plain", [ta, tb]) == """
218220
2-element Array{BenchmarkTools.TrialEstimate,1}:
219221
0.490 ns
220222
1.000 ns"""
221223

224+
else
225+
226+
@test sprint(show, "text/plain", [ta, tb]) == """
227+
2-element Vector{BenchmarkTools.TrialEstimate}:
228+
0.490 ns
229+
1.000 ns"""
230+
231+
end
232+
222233
end # module

0 commit comments

Comments
 (0)