Skip to content

Commit

Permalink
Update CI (#113)
Browse files Browse the repository at this point in the history
* Update .travis.yml

* Delete appveyor.yml

* Julia installation is not needed for CompatHelper

* Save resources by running TagBot only once per day

* Fix and extend Zygote CI

* Fix and extend ReverseDiff CI

* Do not run Zygote tests on Julia nightly

* Fix and extend ForwardDiff and Tracker CI

* Remove whitespace

* Do not test Zygote on Julia 1.0

* Add CompatHelper secrets

* Do not run tests twice

* Run tests only on 64bit for now
  • Loading branch information
devmotion committed Jun 17, 2020
1 parent 9375ada commit a72665d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 108 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/CompatHelper.yml
Expand Up @@ -6,19 +6,12 @@ on:

jobs:
CompatHelper:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.2.0]
julia-arch: [x86]
os: [ubuntu-latest]
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
27 changes: 15 additions & 12 deletions .github/workflows/ForwardDiff_Tracker.yml
Expand Up @@ -5,26 +5,29 @@ on:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
julia-version: [1.0, 1.3]
julia-arch: [x64, x86]
os: [ubuntu-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86

version:
- '1.0'
- '1'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v1.0.0
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-runtest@master
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
STAGE: ForwardDiff_Tracker
27 changes: 15 additions & 12 deletions .github/workflows/ReverseDiff.yml
Expand Up @@ -5,26 +5,29 @@ on:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
julia-version: [1.0, 1.3]
julia-arch: [x64, x86]
os: [ubuntu-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86

version:
- '1.0'
- '1'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v1.0.0
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-runtest@master
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
STAGE: ReverseDiff
2 changes: 1 addition & 1 deletion .github/workflows/TagBot.yml
@@ -1,7 +1,7 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
- cron: 0 0 * * *
jobs:
TagBot:
runs-on: ubuntu-latest
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/Zygote.yml
Expand Up @@ -5,26 +5,28 @@ on:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
julia-version: [1.0, 1.3]
julia-arch: [x64, x86]
os: [ubuntu-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86

version:
- '1'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v1.0.0
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-runtest@master
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
STAGE: Zygote
22 changes: 5 additions & 17 deletions .travis.yml
@@ -1,35 +1,23 @@
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia

# avoids duplicate tests in PRs
branches:
only:
- master

os:
- linux
- osx

julia:
- 1.0
- 1.1
- 1.2
- 1.3
- 1
- nightly

matrix:
allow_failures:
- julia: nightly
fast_finish: true

notifications:
email: false

script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Bijectors"; coverage=true)'

after_success:
- if [[ $TRAVIS_JULIA_VERSION = 1.3 ]] && [[ $TRAVIS_OS_NAME = linux ]]; then
julia -e 'using Pkg; cd(Pkg.dir("Bijectors")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
- 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
44 changes: 0 additions & 44 deletions appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion test/interface.jl
Expand Up @@ -812,4 +812,3 @@ end
end
end

include("norm_flows.jl")

0 comments on commit a72665d

Please sign in to comment.