Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -22,6 +24,11 @@ jobs:
- windows-latest
arch:
- x64
include:
- version: 1
os: ubuntu-latest
arch: x64
coverage: true
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand All @@ -40,12 +47,14 @@ jobs:
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
coverage: ${{ matrix.coverage || false }}
env:
# run compat tests with Turing and Soss only with stable Julia version
GROUP: ${{ (matrix.version == '1' && 'All') || 'AbstractGPs' }}
GROUP: AbstractGPs
- uses: julia-actions/julia-processcoverage@v1
if: matrix.coverage
- name: Send coverage
if: matrix.version == '1' && matrix.os == 'ubuntu-latest'
if: matrix.coverage
uses: codecov/codecov-action@v1
with:
file: lcov.info
21 changes: 16 additions & 5 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
name: CompatHelper

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

jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
- name: "Install CompatHelper"
run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "2"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main(; subdirs=["", "test", "test/ppl", "docs"])
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs=["", "test", "test/compat", "docs"])'
43 changes: 43 additions & 0 deletions .github/workflows/PPL.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: PPL

on:
push:
branches:
- master
pull_request:

jobs:
ppl:
name: PPL tests (Turing and Soss)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1'
os:
- ubuntu-latest
arch:
- x64
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@v1
- uses: julia-actions/julia-runtest@v1
with:
coverage: false
env:
GROUP: PPL
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*.ipynb
.DS_Store
/test/Manifest.toml
/test/compat/Manifest.toml
/test/ppl/Manifest.toml
/Manifest.toml
/dev/
/docs/build/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AbstractGPs

[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaGaussianProcesses.github.io/AbstractGPs.jl/dev)
![CI](https://github.com/JuliaGaussianProcesses/AbstractGPs.jl/workflows/CI/badge.svg?branch=master)
[![CI](https://github.com/JuliaGaussianProcesses/AbstractGPs.jl/workflows/CI/badge.svg?branch=master)](https://github.com/JuliaGaussianProcesses/AbstractGPs.jl/actions/workflows/CI.yml?query=branch%3Amaster)
[![Codecov](https://codecov.io/gh/JuliaGaussianProcesses/AbstractGPs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaGaussianProcesses/AbstractGPs.jl)
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/compat/runtests.jl → test/ppl/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Soss: Soss, For
using Test
using Turing: Turing

@testset "compat" begin
@testset "PPLs" begin
include("turing.jl")
println(" ")
@info "Ran Turing tests"
Expand Down
2 changes: 1 addition & 1 deletion test/compat/soss.jl → test/ppl/soss.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "soss compat" begin
@testset "Soss" begin
@testset "GP regression" begin
k = SqExponentialKernel()
y = randn(3)
Expand Down
2 changes: 1 addition & 1 deletion test/compat/turing.jl → test/ppl/turing.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "turing compat" begin
@testset "Turing" begin
@testset "GP regression" begin
k = SqExponentialKernel()
y = randn(3)
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ include("test_util.jl")
end
end

if GROUP == "All" && VERSION >= v"1.5"
Pkg.activate("compat")
if (GROUP == "All" || GROUP == "PPL") && VERSION >= v"1.5"
Pkg.activate("ppl")
Pkg.develop(PackageSpec(; path=PKGDIR))
Pkg.instantiate()
include(joinpath("compat", "runtests.jl"))
include(joinpath("ppl", "runtests.jl"))
end
end