Skip to content

Commit d9f8585

Browse files
committed
Merge branch 'master' into tor/state-transition-related
2 parents c6c9554 + d521815 commit d9f8585

29 files changed

+1238
-800
lines changed

.JuliaFormatter.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style="blue"

.github/workflows/CI.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
version:
16-
- '1.0'
16+
- '1.6'
1717
- '1'
1818
- nightly
1919
os:
@@ -31,7 +31,7 @@ jobs:
3131
arch: x86
3232
- os: macOS-latest
3333
arch: x86
34-
- version: '1.0'
34+
- version: '1.6'
3535
num_threads: 2
3636
include:
3737
- version: '1'
@@ -45,16 +45,9 @@ jobs:
4545
with:
4646
version: ${{ matrix.version }}
4747
arch: ${{ matrix.arch }}
48-
- uses: actions/cache@v1
49-
env:
50-
cache-name: cache-artifacts
48+
- uses: julia-actions/cache@v1
5149
with:
52-
path: ~/.julia/artifacts
53-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
54-
restore-keys: |
55-
${{ runner.os }}-test-${{ env.cache-name }}-
56-
${{ runner.os }}-test-
57-
${{ runner.os }}-
50+
cache-packages: "false" # caching Conda.jl causes precompilation error
5851
- uses: julia-actions/julia-buildpkg@latest
5952
- uses: julia-actions/julia-runtest@latest
6053
env:

.github/workflows/CompatHelper.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,35 @@ on:
33
schedule:
44
- cron: 0 0 * * *
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
CompatHelper:
811
runs-on: ubuntu-latest
912
steps:
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
1029
- name: "Install CompatHelper"
1130
run: |
1231
import Pkg
1332
name = "CompatHelper"
1433
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
15-
version = "2"
34+
version = "3"
1635
Pkg.add(; name, uuid, version)
1736
shell: julia --color=yes {0}
1837
- name: "Run CompatHelper"

.github/workflows/Docs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
- uses: julia-actions/setup-julia@latest
15+
- uses: julia-actions/setup-julia@v1
1616
with:
1717
version: '1'
18-
- name: Install dependencies
19-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20-
- name: Build and deploy
18+
- uses: julia-actions/julia-buildpkg@v1
19+
- uses: julia-actions/julia-docdeploy@v1
2120
env:
2221
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
2322
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
24-
run: julia --project=docs/ docs/make.jl
23+
JULIA_DEBUG: Documenter # Print `@debug` statements (https://github.com/JuliaDocs/Documenter.jl/issues/955)

.github/workflows/Format.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Format
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
# Skip intermediate builds: always.
8+
# Cancel intermediate builds: only if it is a pull request build.
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
11+
12+
jobs:
13+
format:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: julia-actions/setup-julia@latest
18+
with:
19+
version: 1
20+
- name: Format code
21+
run: |
22+
using Pkg
23+
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
24+
using JuliaFormatter
25+
format("."; verbose=true)
26+
shell: julia --color=yes {0}
27+
- uses: reviewdog/action-suggester@v1
28+
if: github.event_name == 'pull_request'
29+
with:
30+
tool_name: JuliaFormatter
31+
fail_on_error: true

.github/workflows/IntegrationTest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
package:
17+
- {user: TuringLang, repo: AdvancedHMC.jl}
1718
- {user: TuringLang, repo: AdvancedMH.jl}
1819
- {user: TuringLang, repo: EllipticalSliceSampling.jl}
1920
- {user: TuringLang, repo: MCMCChains.jl}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
*.jl.*.cov
33
*.jl.mem
44
deps/deps.jl
5-
/Manifest.toml
5+
Manifest.toml

Project.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ uuid = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
33
keywords = ["markov chain monte carlo", "probablistic programming"]
44
license = "MIT"
55
desc = "A lightweight interface for common MCMC methods."
6-
version = "3.2.1"
6+
version = "4.5.0"
77

88
[deps]
99
BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66"
1010
ConsoleProgressMonitor = "88cd18e8-d9cc-4ea6-8889-5259c0d15c8b"
1111
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
12+
LogDensityProblems = "6fdf6af0-433a-55f7-b3ed-c6c6e0b8df7c"
1213
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
1314
LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
1415
ProgressLogging = "33c8b6b6-d38a-422a-b730-caa89a2f386c"
@@ -20,18 +21,19 @@ Transducers = "28d57a85-8fef-5791-bfe6-a80928e7c999"
2021
[compat]
2122
BangBang = "0.3.19"
2223
ConsoleProgressMonitor = "0.1"
23-
LoggingExtras = "0.4"
24+
LogDensityProblems = "2"
25+
LoggingExtras = "0.4, 0.5, 1"
2426
ProgressLogging = "0.1"
25-
StatsBase = "0.32, 0.33"
27+
StatsBase = "0.32, 0.33, 0.34"
2628
TerminalLoggers = "0.1"
2729
Transducers = "0.4.30"
28-
julia = "1"
30+
julia = "1.6"
2931

3032
[extras]
31-
Atom = "c52e3926-4ff0-5f6e-af25-54175e0327b1"
33+
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
3234
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
3335
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
3436
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3537

3638
[targets]
37-
test = ["Atom", "IJulia", "Statistics", "Test"]
39+
test = ["FillArrays", "IJulia", "Statistics", "Test"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Abstract types and interfaces for Markov chain Monte Carlo methods.
88
[![IntegrationTest](https://github.com/TuringLang/AbstractMCMC.jl/workflows/IntegrationTest/badge.svg?branch=master)](https://github.com/TuringLang/AbstractMCMC.jl/actions?query=workflow%3AIntegrationTest+branch%3Amaster)
99
[![Codecov](https://codecov.io/gh/TuringLang/AbstractMCMC.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/TuringLang/AbstractMCMC.jl)
1010
[![Coveralls](https://coveralls.io/repos/github/TuringLang/AbstractMCMC.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/AbstractMCMC.jl?branch=master)
11+
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)

0 commit comments

Comments
 (0)