Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and test dependency lower bounds #176

Merged
merged 13 commits into from
Feb 12, 2024
17 changes: 14 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.num_threads }} threads - ${{ github.event_name }}
name: ${{ matrix.downgrade && 'Downgrade / ' || '' }}Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.num_threads }} threads - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -29,16 +29,27 @@ jobs:
num_threads:
- 1
- 2
downgrade:
- false
include:
- version: '1'
os: ubuntu-latest
arch: x64
num_threads: 2
downgrade: true
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: cjdoris/julia-downgrade-compat-action@v1
with:
skip: LinearAlgebra,Random,Statistics
if: ${{ matrix.downgrade }}
name: Downgrade dependencies to oldest supported versions
- uses: julia-actions/julia-buildpkg@v1
- name: Fix Transducers to last-compatible version
run: julia --project -e 'using Pkg; Pkg.pin(name="Transducers", version=v"0.4.75")'
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: ${{ matrix.num_threads }}
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/IntegrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
jobs:
test:
name: ${{ matrix.package }} - Julia ${{ matrix.version }}
name: ${{ matrix.downgrade && 'Downgrade / ' || '' }}${{ matrix.package }} - Julia ${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -16,17 +16,20 @@ jobs:
- DynamicHMC
- AdvancedHMC
- Turing
include:
- package: DynamicHMC
version: 'nightly'
- package: Turing
version: 'nightly'
downgrade:
- true
- false
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: x64
- uses: cjdoris/julia-downgrade-compat-action@v1
with:
skip: LinearAlgebra,Random,Statistics
if: ${{ matrix.downgrade }}
name: Downgrade dependencies to oldest supported versions
- uses: julia-actions/julia-buildpkg@v1
- run: |
julia --code-coverage=user -e '
Expand Down
33 changes: 17 additions & 16 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Pathfinder"
uuid = "b1d3bc72-d0e7-4279-b92f-7fa5d6d2d454"
authors = ["Seth Axen <[email protected]> and contributors"]
version = "0.8.2"
version = "0.8.3"

[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Expand Down Expand Up @@ -36,28 +36,29 @@ PathfinderDynamicHMCExt = "DynamicHMC"
PathfinderTuringExt = ["Accessors", "DynamicPPL", "MCMCChains", "Turing"]

[compat]
Accessors = "0.1"
Distributions = "0.25"
DynamicPPL = "0.21, 0.22, 0.23, 0.24"
Folds = "0.2"
ForwardDiff = "0.10"
Accessors = "0.1.1"
Distributions = "0.25.57"
DynamicHMC = "3.4.0"
DynamicPPL = "0.21.5, 0.22, 0.23, 0.24"
Folds = "0.2.2"
ForwardDiff = "0.10.13"
IrrationalConstants = "0.1.1, 0.2"
LinearAlgebra = "1.6"
LogDensityProblems = "2"
MCMCChains = "5, 6"
Optim = "1.4"
Optimization = "3"
OptimizationOptimJL = "0.1, 0.2"
LogDensityProblems = "2.1.0"
MCMCChains = "5.3.0, 6"
Optim = "1.6.2"
Optimization = "3.5"
OptimizationOptimJL = "0.1.1, 0.2"
PDMats = "0.11.26"
PSIS = "0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9"
ProgressLogging = "0.1.4"
Random = "1.6"
Requires = "1"
SciMLBase = "1.8.1, 2"
Requires = "1.1"
SciMLBase = "1.61.2, 2"
Statistics = "1.6"
StatsBase = "0.33, 0.34"
Transducers = "0.4.5"
Turing = "0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30"
StatsBase = "0.33.1, 0.34"
Transducers = "0.4.66"
Turing = "0.24.2, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30"
UnPack = "1"
julia = "1.6"

Expand Down
16 changes: 8 additions & 8 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
[compat]
AdvancedHMC = "0.4, 0.5, 0.6"
Documenter = "1"
DynamicHMC = "3"
ForwardDiff = "0.10"
LogDensityProblems = "1, 2"
LogDensityProblemsAD = "1, 2"
DynamicHMC = "3.4.0"
ForwardDiff = "0.10.13"
LogDensityProblems = "2.1.0"
LogDensityProblemsAD = "1.4"
Pathfinder = "0.8"
StatsFuns = "0.9, 1"
StatsPlots = "0.14, 0.15"
StatsFuns = "1"
StatsPlots = "0.14.21, 0.15"
TransformVariables = "0.6, 0.7, 0.8"
TransformedLogDensities = "1"
Turing = "0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30"
TransformedLogDensities = "1.0.2"
Turing = "0.24.2, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30"
16 changes: 8 additions & 8 deletions test/integration/AdvancedHMC/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ TransformedLogDensities = "f9bc47f6-f3f8-4f3b-ab21-f8bc73906f26"

[compat]
AdvancedHMC = "0.4, 0.5, 0.6"
Distributions = "0.25"
ForwardDiff = "0.10"
LogDensityProblems = "1, 2"
LogDensityProblemsAD = "1"
Distributions = "0.25.57"
ForwardDiff = "0.10.13"
LogDensityProblems = "2.1.0"
LogDensityProblemsAD = "1.0.1, 2"
MCMCDiagnosticTools = "0.3"
Optim = "1.4"
Pathfinder = "0.7, 0.8"
Optim = "1.6.2"
Pathfinder = "0.8"
Statistics = "1"
StatsFuns = "0.9, 1"
StatsFuns = "1"
TransformVariables = "0.6, 0.7, 0.8"
TransformedLogDensities = "1"
TransformedLogDensities = "1.0.2"
julia = "1.6"
14 changes: 7 additions & 7 deletions test/integration/DynamicHMC/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ TransformVariables = "84d833dd-6860-57f9-a1a7-6da5db126cff"
TransformedLogDensities = "f9bc47f6-f3f8-4f3b-ab21-f8bc73906f26"

[compat]
DynamicHMC = "3"
LogDensityProblems = "1, 2"
LogDensityProblemsAD = "1"
DynamicHMC = "3.4.0"
LogDensityProblems = "2.1.0"
LogDensityProblemsAD = "1.0.1"
MCMCDiagnosticTools = "0.3"
Optim = "1.4"
Pathfinder = "0.7, 0.8"
Optim = "1.6.2"
Pathfinder = "0.8"
Statistics = "1"
StatsFuns = "0.9, 1"
StatsFuns = "1"
TransformVariables = "0.6, 0.7, 0.8"
TransformedLogDensities = "1"
TransformedLogDensities = "1.0.2"
julia = "1.6"
4 changes: 2 additions & 2 deletions test/integration/Turing/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"

[compat]
Pathfinder = "0.5, 0.6, 0.7, 0.8"
Turing = "0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30"
Pathfinder = "0.8"
Turing = "0.24.2, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30"
julia = "1.6"
Loading