From 9306bed6136aa6fc67d2616c31a54ba38ba994e9 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 30 Nov 2020 17:11:22 +0100 Subject: [PATCH 1/5] Switch to Github CI --- .github/workflows/CI.yml | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8c502d5..3ca2401 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,6 +10,7 @@ jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.version == 'nightly' }} strategy: matrix: version: @@ -17,15 +18,46 @@ jobs: - '1' - 'nightly' os: + - ubuntu-latest + - macOS-latest - windows-latest arch: - x86 - x64 + exclude: + - os: macOS-latest + arch: x86 + include: + - version: '1' + os: ubuntu-latest + arch: x64 + coverage: true steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-runtest@latest + - 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@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + if: matrix.coverage + - uses: codecov/codecov-action@v1 + if: matrix.coverage + with: + file: lcov.info + - uses: coverallsapp/github-action@master + if: matrix.coverage + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: lcov.info From 1ab5536d84b389180198f21b7fe9b5ac1b4b87ae Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 30 Nov 2020 17:12:24 +0100 Subject: [PATCH 2/5] Update CompatHelper.yml --- .github/workflows/CompatHelper.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 98e2cea..81c8c3f 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -1,9 +1,8 @@ name: CompatHelper - on: schedule: - - cron: '0 0 * * *' - + - cron: '00 00 * * *' + workflow_dispatch: jobs: CompatHelper: runs-on: ubuntu-latest From 9ac9c9b1d979e3b654ac67214e7222cd6a9a850b Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 30 Nov 2020 17:13:13 +0100 Subject: [PATCH 3/5] Update TagBot.yml --- .github/workflows/TagBot.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index 136b29b..778c06f 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -1,11 +1,12 @@ name: TagBot - on: - schedule: - - cron: '0 0 * * *' - + issue_comment: + types: + - created + workflow_dispatch: jobs: TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' runs-on: ubuntu-latest steps: - uses: JuliaRegistries/TagBot@v1 From 0f1845dad9d094afb6bb947846c5f70abd7e3bfb Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 30 Nov 2020 17:13:33 +0100 Subject: [PATCH 4/5] Delete .travis.yml --- .travis.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 876d6c2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -branches: - only: - - master -os: - - linux - - osx -julia: - - 1.0 - - 1 - - nightly -matrix: - allow_failures: - - julia: nightly - fast_finish: true -notifications: - email: false -after_success: - - if [[ $TRAVIS_JULIA_VERSION = 1 ]] && [[ $TRAVIS_OS_NAME = linux ]]; then - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'; - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'; - fi From 313e461ddffed45fe33d5178b2cea2feb0b7b24c Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 30 Nov 2020 17:15:11 +0100 Subject: [PATCH 5/5] Update badge --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ec9f72..2a6ee73 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ Julia implementation of elliptical slice sampling. [![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) -[![Build Status](https://travis-ci.com/TuringLang/EllipticalSliceSampling.jl.svg?branch=master)](https://travis-ci.com/TuringLang/EllipticalSliceSampling.jl) -[![Build Status](https://github.com/TuringLang/EllipticalSliceSampling.jl/workflows/CI/badge.svg)](https://github.com/TuringLang/EllipticalSliceSampling.jl/actions?query=workflow%3ACI) +[![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) [![Codecov](https://codecov.io/gh/TuringLang/EllipticalSliceSampling.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/TuringLang/EllipticalSliceSampling.jl) [![Coveralls](https://coveralls.io/repos/github/TuringLang/EllipticalSliceSampling.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/EllipticalSliceSampling.jl?branch=master)