diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..700707c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58a2009..ce24962 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,17 +15,17 @@ jobs: strategy: fail-fast: false matrix: - version: ['1.6', '1'] # Test against LTS and current minor release + version: ['1.10', '1'] # Test against LTS and current minor release os: [ubuntu-latest] arch: [x64] cplex_version: ['12100', '2010', '2210'] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v3 - uses: julia-actions/julia-buildpkg@v1 env: SECRET_CPLEX_URL_12100: ${{ secrets.CPLEX_URL_12100 }} @@ -34,7 +34,7 @@ jobs: CPLEX_VERSION: ${{ matrix.cplex_version }} - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 with: - file: lcov.info + files: lcov.info token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml index ff17dba..bc675b5 100644 --- a/.github/workflows/format_check.yml +++ b/.github/workflows/format_check.yml @@ -13,12 +13,12 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1' - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Format check shell: julia --color=yes {0} run: | using Pkg - Pkg.add(PackageSpec(name="JuliaFormatter", version="1")) + Pkg.add(PackageSpec(name="JuliaFormatter", version="2")) using JuliaFormatter format("src/MOI", verbose=true) format_file("src/CPLEX.jl") diff --git a/Project.toml b/Project.toml index 996f5ba..47194da 100644 --- a/Project.toml +++ b/Project.toml @@ -11,12 +11,12 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [compat] CEnum = "0.3, 0.4, 0.5" -Libdl = "<0.0.1, 1.6" +Libdl = "1" MathOptInterface = "1.12" -Random = "<0.0.1, 1.6" -SparseArrays = "<0.0.1, 1.6" -Test = "<0.0.1, 1.6" -julia = "1.6" +Random = "1" +SparseArrays = "1" +Test = "1" +julia = "1.10" [extras] Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" diff --git a/src/MOI/MOI_wrapper.jl b/src/MOI/MOI_wrapper.jl index 70d0461..3598a2a 100644 --- a/src/MOI/MOI_wrapper.jl +++ b/src/MOI/MOI_wrapper.jl @@ -2175,9 +2175,7 @@ function MOI.get( terms, MOI.ScalarAffineTerm( rmatval[i], - model.variable_info[CleverDicts.LinearIndex( - rmatind[i] + 1, - )].index, + model.variable_info[CleverDicts.LinearIndex(rmatind[i] + 1)].index, ), ) end