Skip to content

Commit ea7d2a9

Browse files
authored
Update CI Versioning (#378)
* Update CI versioning * fix typo * Remove old arguments * update random numbers
1 parent f0563b7 commit ea7d2a9

File tree

6 files changed

+18
-27
lines changed

6 files changed

+18
-27
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Since InfiniteOpt doesn't have binary dependencies, only test on a subset of
1818
# possible platforms.
1919
include:
20-
- version: '1.6'
20+
- version: '1.10'
2121
os: ubuntu-latest
2222
arch: x64
2323
- version: '1'
@@ -36,26 +36,17 @@ jobs:
3636
os: ubuntu-latest
3737
arch: x64
3838
steps:
39-
- uses: actions/checkout@v3
40-
- uses: julia-actions/setup-julia@v1
39+
- uses: actions/checkout@v4
40+
- uses: julia-actions/setup-julia@v2
4141
with:
4242
version: ${{ matrix.version }}
4343
arch: ${{ matrix.arch }}
44-
- uses: actions/cache@v1
45-
env:
46-
cache-name: cache-artifacts
47-
with:
48-
path: ~/.julia/artifacts
49-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
50-
restore-keys: |
51-
${{ runner.os }}-test-${{ env.cache-name }}-
52-
${{ runner.os }}-test-
53-
${{ runner.os }}-
44+
- uses: julia-actions/cache@v2
5445
- uses: julia-actions/julia-buildpkg@v1
5546
- uses: julia-actions/julia-runtest@v1
5647
continue-on-error: ${{ matrix.version == 'nightly' }}
5748
- uses: julia-actions/julia-processcoverage@v1
58-
- uses: codecov/codecov-action@v3
49+
- uses: codecov/codecov-action@v4
5950
env:
6051
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6152
with:

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v2
1818
- uses: julia-actions/setup-julia@latest
1919
with:
20-
version: '1.6' # Build documentation on Julia 1.6
20+
version: '1.10' # Build documentation on Julia 1.10
2121
- name: Install plotting dependencies # For enabling GR.jl (used by Plots.jl)
2222
run: |
2323
sudo apt-get update

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ can be installed by entering the following in the REPL.
4343
```julia
4444
julia> ]
4545

46-
(v1.10) pkg> add InfiniteOpt
46+
(v1.11) pkg> add InfiniteOpt
4747
```
4848

4949
## Documentation
@@ -78,7 +78,7 @@ citing it.
7878
A pre-print version is freely available though [arXiv](https://arxiv.org/abs/2106.12689).
7979

8080
## Project Status
81-
The package is tested against Julia `1.6` and `1.10` on Linux, Mac, and Windows.
81+
The package is tested against Julia's LTS release and the latest released version on Linux, Mac, and Windows.
8282

8383
## Contributing
8484
`InfiniteOpt` is being actively developed and suggestions or other forms of contribution are encouraged.

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Documenter = "1.5"
1818
InfiniteOpt = "0.5"
1919
Ipopt = "1.6"
2020
HiGHS = "1"
21-
julia = "1.6"
21+
julia = "1.10"
2222
JuMP = "1.23"
2323
Literate = "2.18"
2424
Plots = "1"

docs/src/guide/domains.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ over the interval. To use this method, users need to specify a second positional
170170
argument, as shown in the following example:
171171
```jldoctest; setup = :(using InfiniteOpt, Random; Random.seed!(0); domain = IntervalDomain(-2, 2))
172172
julia> generate_supports(domain, MCSample, num_supports = 5, sig_digits = 5)
173-
([1.2946, 1.6414, -1.3417, -1.2907, -0.88448], MCSample)
173+
([-0.3772, -1.7258, 1.4486, -1.6561, 0.64645], MCSample)
174174
```
175175
In this case, the returned label is `MCSample`, instead of `UniformGrid`.
176176

docs/src/guide/parameter.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ the distribution.
271271
```jldoctest macro_define
272272
julia> supports(θ)
273273
2×3 Matrix{Float64}:
274-
0.679107 -0.353007 0.586617
275-
1.17155 -0.190712 0.420496
274+
0.942971 1.52507 -1.20577
275+
0.189395 0.175223 0.440976
276276
```
277277
We refer to groups of parameters defined this way as dependent infinite
278278
parameters. In principle, nonrandom infinite parameter types can be made
@@ -429,10 +429,10 @@ x
429429
430430
julia> supports(x)
431431
4-element Vector{Float64}:
432-
-0.353007400301
433-
-0.134853871931
434-
0.679107426036
435-
0.8284134829
432+
0.123901231206
433+
0.133922757653
434+
0.942970533446
435+
1.52506890851
436436
```
437437
For multivariate distributions, though, we require support points are provided
438438
in the definition. However, we can use [`fill_in_supports!`](@ref) to generate
@@ -518,8 +518,8 @@ julia> fill_in_supports!(ξ, num_supports = 3)
518518
519519
julia> supports(ξ)
520520
2×3 Matrix{Float64}:
521-
0.679107 -0.353007 0.586617
522-
1.17155 -0.190712 0.420496
521+
0.942971 1.52507 -1.20577
522+
0.189395 0.175223 0.440976
523523
```
524524
Note that [`fill_in_supports!`](@ref) only fill in supports for parameters with no
525525
associated supports. To modify the supports of parameters already associated

0 commit comments

Comments
 (0)