Skip to content

Commit

Permalink
Update dependency lower bounds and test with CI (#120)
Browse files Browse the repository at this point in the history
* Bump compat lower bounds

* Bump compat lower bounds for tests

* Test with downgraded dependencies

* Bump XGBoost lower bound so tests pass with tolerance

* Increment patch number

* Make tests and docs compats match

* Bump Tables to 1.11

EvoTrees recent versions use a method of `Tables.DataAPI.nrow` only defined in Tables v1.11.

* Replace `test/Project.toml` with an extras section in `Project.toml`

* Add compat entry for Test

* Skip downgrading Test

* Bump EvoTrees lower-bound to 0.15

This avoids an error that only manifests on ~0.14.7 when using a single thread
  • Loading branch information
sethaxen authored Feb 14, 2024
1 parent 20ffbc2 commit 22220fc
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 49 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
name: ${{ matrix.downgrade && 'Downgrade / ' || '' }}Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -21,20 +21,33 @@ jobs:
- ubuntu-latest
arch:
- x64
downgrade:
- false
include:
- version: '1'
os: macOS-latest
arch: x64
downgrade: false
- version: '1'
os: windows-latest
arch: x64
downgrade: false
- version: '1'
os: ubuntu-latest
arch: x64
downgrade: true
steps:
- uses: actions/checkout@v4
- 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,Markdown,Printf,Random,Statistics,Test
if: ${{ matrix.downgrade }}
name: Downgrade dependencies to oldest supported versions
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
Expand Down
45 changes: 39 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MCMCDiagnosticTools"
uuid = "be115224-59cd-429b-ad48-344e309966f0"
authors = ["David Widmann", "Seth Axen"]
version = "0.3.8"
version = "0.3.9"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand All @@ -18,16 +18,49 @@ StatsFuns = "4c63d2b9-4356-54db-8cca-17b64c39e42c"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
Aqua = "0.8.1"
AbstractFFTs = "0.5, 1"
DataAPI = "1.6"
DataAPI = "1.8"
DataStructures = "0.18.3"
Distributions = "0.25"
Distributions = "0.25.57"
DynamicHMC = "3.2"
EvoTrees = "0.15, 0.16"
FFTW = "1.1"
LinearAlgebra = "1.6"
LogDensityProblems = "0.12, 1, 2"
LogExpFunctions = "0.3.26"
MLJBase = "0.20, 0.21, 1"
MLJDecisionTreeInterface = "0.3, 0.4"
MLJIteration = "0.5, 0.6"
MLJLIBSVMInterface = "0.2"
MLJModelInterface = "1.6"
MLJModels = "0.16"
MLJXGBoostInterface = "0.3.4"
OffsetArrays = "1.11"
Random = "1.6"
SpecialFunctions = "0.8, 0.9, 0.10, 1, 2"
SpecialFunctions = "1.8.4, 2"
Statistics = "1.6"
StatsBase = "0.33, 0.34"
StatsBase = "0.33.3, 0.34"
StatsFuns = "1"
Tables = "1"
Tables = "1.11"
Test = "1.6"
julia = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
DynamicHMC = "bbc10e6e-7c05-544b-b16e-64fede858acb"
EvoTrees = "f6006082-12f8-11e9-0c9c-0d5d367ab1e5"
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
LogDensityProblems = "6fdf6af0-433a-55f7-b3ed-c6c6e0b8df7c"
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
MLJDecisionTreeInterface = "c6f25543-311c-4c74-83dc-3ea6d1015661"
MLJIteration = "614be32b-d00c-4edb-bd02-1eb411ab5e55"
MLJLIBSVMInterface = "61c7150f-6c77-4bb1-949c-13197eac2a52"
MLJModels = "d491faf4-2d78-11e9-2867-c94bc002c0b7"
MLJXGBoostInterface = "54119dfa-1dab-4055-a167-80440f4f7a91"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "DynamicHMC", "EvoTrees", "FFTW", "LogDensityProblems", "LogExpFunctions", "MLJBase", "MLJDecisionTreeInterface", "MLJIteration", "MLJLIBSVMInterface", "MLJModels", "MLJXGBoostInterface", "OffsetArrays", "Test"]
4 changes: 2 additions & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
Documenter = "1"
EvoTrees = "0.14.7, 0.15, 0.16"
MLJBase = "0.19, 0.20, 0.21, 1"
EvoTrees = "0.15, 0.16"
MLJBase = "0.20, 0.21, 1"
MLJIteration = "0.5, 0.6"
StatisticalMeasures = "0.1"
Statistics = "1.6"
Expand Down
40 changes: 0 additions & 40 deletions test/Project.toml

This file was deleted.

2 comments on commit 22220fc

@sethaxen
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/100841

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.9 -m "<description of version>" 22220fcc1490f712dd4a4f701f19efd603fdc658
git push origin v0.3.9

Please sign in to comment.