Skip to content

Commit cc3a792

Browse files
authored
Switch to Github CI (#11)
1 parent 6105b2e commit cc3a792

File tree

5 files changed

+42
-34
lines changed

5 files changed

+42
-34
lines changed

.github/workflows/CI.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,54 @@ jobs:
1010
test:
1111
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1212
runs-on: ${{ matrix.os }}
13+
continue-on-error: ${{ matrix.version == 'nightly' }}
1314
strategy:
1415
matrix:
1516
version:
1617
- '1.0'
1718
- '1'
1819
- 'nightly'
1920
os:
21+
- ubuntu-latest
22+
- macOS-latest
2023
- windows-latest
2124
arch:
2225
- x86
2326
- x64
27+
exclude:
28+
- os: macOS-latest
29+
arch: x86
30+
include:
31+
- version: '1'
32+
os: ubuntu-latest
33+
arch: x64
34+
coverage: true
2435
steps:
2536
- uses: actions/checkout@v2
2637
- uses: julia-actions/setup-julia@v1
2738
with:
2839
version: ${{ matrix.version }}
2940
arch: ${{ matrix.arch }}
30-
- uses: julia-actions/julia-buildpkg@latest
31-
- uses: julia-actions/julia-runtest@latest
41+
- uses: actions/cache@v1
42+
env:
43+
cache-name: cache-artifacts
44+
with:
45+
path: ~/.julia/artifacts
46+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
47+
restore-keys: |
48+
${{ runner.os }}-test-${{ env.cache-name }}-
49+
${{ runner.os }}-test-
50+
${{ runner.os }}-
51+
- uses: julia-actions/julia-buildpkg@v1
52+
- uses: julia-actions/julia-runtest@v1
53+
- uses: julia-actions/julia-processcoverage@v1
54+
if: matrix.coverage
55+
- uses: codecov/codecov-action@v1
56+
if: matrix.coverage
57+
with:
58+
file: lcov.info
59+
- uses: coverallsapp/github-action@master
60+
if: matrix.coverage
61+
with:
62+
github-token: ${{ secrets.GITHUB_TOKEN }}
63+
path-to-lcov: lcov.info

.github/workflows/CompatHelper.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '0 0 * * *'
6-
4+
- cron: '00 00 * * *'
5+
workflow_dispatch:
76
jobs:
87
CompatHelper:
98
runs-on: ubuntu-latest

.github/workflows/TagBot.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: TagBot
2-
32
on:
4-
schedule:
5-
- cron: '0 0 * * *'
6-
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
77
jobs:
88
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: JuliaRegistries/TagBot@v1

.travis.yml

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

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
Julia implementation of elliptical slice sampling.
44

55
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
6-
[![Build Status](https://travis-ci.com/TuringLang/EllipticalSliceSampling.jl.svg?branch=master)](https://travis-ci.com/TuringLang/EllipticalSliceSampling.jl)
7-
[![Build Status](https://github.com/TuringLang/EllipticalSliceSampling.jl/workflows/CI/badge.svg)](https://github.com/TuringLang/EllipticalSliceSampling.jl/actions?query=workflow%3ACI)
6+
[![Build Status](https://github.com/TuringLang/EllipticalSliceSampling.jl/workflows/CI/badge.svg?branch=master)](https://github.com/TuringLang/EllipticalSliceSampling.jl/actions?query=workflow%3ACI%20branch%3Amaster)
87
[![Codecov](https://codecov.io/gh/TuringLang/EllipticalSliceSampling.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/TuringLang/EllipticalSliceSampling.jl)
98
[![Coveralls](https://coveralls.io/repos/github/TuringLang/EllipticalSliceSampling.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/EllipticalSliceSampling.jl?branch=master)
109

0 commit comments

Comments
 (0)