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

added Downgrade CI to dev branch #13

Merged
merged 16 commits into from
Mar 21, 2024
Merged
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
julia-version: ['1', 'nightly']
julia-version: ['1']
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Downgrade
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
push:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['1']
group:
- Core
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- uses: julia-actions/julia-downgrade-compat@v1
with:
skip: Pkg,TOML,Aqua,COSMO,SafeTestsets
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
14 changes: 7 additions & 7 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "NearestCorrelationMatrix"
uuid = "59ddf330-608c-4938-8bc9-a4ee97bbbea6"
authors = ["Alex Knudson <alexk.706@gmail.com> and contributors"]
version = "0.3.1"
version = "1.0.0-DEV"

[deps]
CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"
Expand All @@ -20,14 +20,14 @@ NCMJuMPExt = "JuMP"
Aqua = "0.8"
COSMO = "0.8"
CommonSolve = "0.2"
JuMP = "1"
LinearAlgebra = "<0.0.1, 1"
PrecompileTools = "1"
JuMP = "1.20"
LinearAlgebra = "1.10"
PrecompileTools = "1.2"
SafeTestsets = "0.1"
Test = "<0.0.1, 1"
Tullio = "0.3"
Test = "1"
Tullio = "0.3.6"
UnPack = "1"
julia = "1.9, 1.10"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
23 changes: 10 additions & 13 deletions src/NearestCorrelationMatrix.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
module NearestCorrelationMatrix


import PrecompileTools

PrecompileTools.@recompile_invalidations begin
include("internals/Internals.jl")
using .Internals
using LinearAlgebra
using CommonSolve: CommonSolve, init, solve, solve!
using UnPack

using LinearAlgebra
using CommonSolve: CommonSolve, init, solve, solve!
using UnPack
end
include("internals/Internals.jl")
using .Internals


struct NullParameters end
Expand All @@ -29,11 +25,12 @@ include("algorithms/alternatingprojections.jl")
include("algorithms/extension_algs.jl")


import PrecompileTools
PrecompileTools.@compile_workload begin
A = rand(Float64, 4, 4)
nearest_cor(A, Newton(); fix_sym=true)
nearest_cor(A, AlternatingProjections(); fix_sym=true)
nearest_cor(A, DirectProjection(); fix_sym=true)
A = rand(Float64, 4, 4)
nearest_cor(A, Newton(); fix_sym=true)
nearest_cor(A, AlternatingProjections(); fix_sym=true)
nearest_cor(A, DirectProjection(); fix_sym=true)
end


Expand Down
Loading