Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version: ['1'] # Test against LTS
os: [ubuntu-latest, macOS-latest, windows-latest]
arch: [x64]
# TODO(odow): Fix this
# include:
# Also test against 32-bit Linux
# - version: '1'
# os: ubuntu-latest
# arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ If you do not want BinaryProvider to download the default binaries on install, s

To switch back to the default binaries clear `JULIA_SDPA_LIBRARY_PATH` and call `import Pkg; Pkg.build("SDPA")`.


[build-img]: https://travis-ci.org/jump-dev/SDPA.jl.svg?branch=master
[build-url]: https://travis-ci.org/jump-dev/SDPA.jl
[build-img]: https://github.com/jump-dev/Clp.jl/workflows/CI/badge.svg?branch=master
[build-url]: https://github.com/jump-dev/Clp.jl/actions?query=workflow%3ACI
[codecov-img]: http://codecov.io/github/jump-dev/SDPA.jl/coverage.svg?branch=master
[codecov-url]: http://codecov.io/github/jump-dev/SDPA.jl?branch=master

Expand Down
26 changes: 22 additions & 4 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,38 @@ const config = MOIT.TestConfig(atol=1e-3, rtol=1e-3)

@testset "Unit" begin
MOIT.unittest(bridged, config, [
# TODO(odow): FIX THIS
"solve_twice",
# `NumberOfThreads` not supported.
"number_threads",
# `TimeLimitSec` not supported.
"time_limit_sec",
# SingleVariable objective of bridged variables, will be solved by objective bridges
"solve_time", "raw_status_string", "solve_singlevariable_obj",
"solve_time",
"raw_status_string",
"solve_singlevariable_obj",
# Quadratic functions are not supported
"solve_qcp_edge_cases", "solve_qp_edge_cases",
"solve_qcp_edge_cases",
"solve_qp_edge_cases",
"solve_qp_zero_offdiag",
# Integer and ZeroOne sets are not supported
"solve_integer_edge_cases", "solve_objbound_edge_cases",
"solve_integer_edge_cases",
"solve_objbound_edge_cases",
"solve_zero_one_with_bounds_1",
"solve_zero_one_with_bounds_2",
"solve_zero_one_with_bounds_3"])
"solve_zero_one_with_bounds_3",
# FarkasDual tests: SDPA doesn't like proving infeasibility for these...
"solve_farkas_equalto_upper",
"solve_farkas_equalto_lower",
"solve_farkas_lessthan",
"solve_farkas_greaterthan",
"solve_farkas_interval_lower",
"solve_farkas_interval_upper",
"solve_farkas_variable_lessthan",
"solve_farkas_variable_lessthan_max",
])
end

@testset "Linear tests" begin
# See explanation in `MOI/test/Bridges/lazy_bridge_optimizer.jl`.
# This is to avoid `Variable.VectorizeBridge` which does not support
Expand Down