Skip to content

Commit

Permalink
Switch from Travis to Github Actions (#254)
Browse files Browse the repository at this point in the history
* Switch from Travis to Github Actions

* Update CompatHelper

* Disable XGBoost tests on 32bit systems

* Update README.md
  • Loading branch information
devmotion authored Nov 27, 2020
1 parent 55d495f commit 6edc228
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 75 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
version:
- '1.0'
- '1'
- nightly
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x86
- x64
exclude:
- os: windows-latest
arch: x86
- os: macOS-latest
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
- uses: codecov/codecov-action@v1
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
with:
file: lcov.info
- uses: coverallsapp/github-action@master
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
4 changes: 2 additions & 2 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'

workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
Expand All @@ -13,4 +12,5 @@ jobs:
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# MCMCChains.jl
[![Build Status](https://travis-ci.org/TuringLang/MCMCChains.jl.svg?branch=master)](https://travis-ci.org/TuringLang/MCMCChains.jl)

![CI](https://github.com/TuringLang/MCMCChains.jl/workflows/CI/badge.svg?branch=master)
[![codecov](https://codecov.io/gh/TuringLang/MCMCChains.jl/branch/master/graph/badge.svg?token=TFxRFbKONS)](https://codecov.io/gh/TuringLang/MCMCChains.jl)
[![Coverage Status](https://coveralls.io/repos/github/TuringLang/MCMCChains.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/MCMCChains.jl?branch=master)

Implementation of Julia types for summarizing MCMC simulations and utility functions for diagnostics and visualizations.
Expand Down
41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Random.seed!(0)

@testset "MCMCChains" begin
# MLJXGBoostInterface requires Julia >= 1.3
if VERSION >= v"1.3"
# XGBoost errors on 32bit systems: https://github.com/dmlc/XGBoost.jl/issues/92
if VERSION >= v"1.3" && Sys.WORD_SIZE == 64
# run tests related to rstar statistic
println("Rstar")
Pkg.add("MLJModels")
Expand Down

0 comments on commit 6edc228

Please sign in to comment.