Skip to content

Commit f0385ca

Browse files
authored
Update CI to GH actions and exclude troublesome tests (#29)
1 parent 93ad764 commit f0385ca

File tree

4 files changed

+68
-17
lines changed

4 files changed

+68
-17
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
jobs:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
version: ['1'] # Test against LTS
15+
os: [ubuntu-latest, macOS-latest, windows-latest]
16+
arch: [x64]
17+
# TODO(odow): Fix this
18+
# include:
19+
# Also test against 32-bit Linux
20+
# - version: '1'
21+
# os: ubuntu-latest
22+
# arch: x86
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: julia-actions/setup-julia@v1
26+
with:
27+
version: ${{ matrix.version }}
28+
arch: ${{ matrix.arch }}
29+
- uses: actions/cache@v1
30+
env:
31+
cache-name: cache-artifacts
32+
with:
33+
path: ~/.julia/artifacts
34+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35+
restore-keys: |
36+
${{ runner.os }}-test-${{ env.cache-name }}-
37+
${{ runner.os }}-test-
38+
${{ runner.os }}-
39+
- uses: julia-actions/julia-buildpkg@v1
40+
- uses: julia-actions/julia-runtest@v1
41+
- uses: julia-actions/julia-processcoverage@v1
42+
- uses: codecov/codecov-action@v1
43+
with:
44+
file: lcov.info

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ If you do not want BinaryProvider to download the default binaries on install, s
7272

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

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

test/MOI_wrapper.jl

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,38 @@ const config = MOIT.TestConfig(atol=1e-3, rtol=1e-3)
2828

2929
@testset "Unit" begin
3030
MOIT.unittest(bridged, config, [
31+
# TODO(odow): FIX THIS
32+
"solve_twice",
3133
# `NumberOfThreads` not supported.
3234
"number_threads",
3335
# `TimeLimitSec` not supported.
3436
"time_limit_sec",
3537
# SingleVariable objective of bridged variables, will be solved by objective bridges
36-
"solve_time", "raw_status_string", "solve_singlevariable_obj",
38+
"solve_time",
39+
"raw_status_string",
40+
"solve_singlevariable_obj",
3741
# Quadratic functions are not supported
38-
"solve_qcp_edge_cases", "solve_qp_edge_cases",
42+
"solve_qcp_edge_cases",
43+
"solve_qp_edge_cases",
44+
"solve_qp_zero_offdiag",
3945
# Integer and ZeroOne sets are not supported
40-
"solve_integer_edge_cases", "solve_objbound_edge_cases",
46+
"solve_integer_edge_cases",
47+
"solve_objbound_edge_cases",
4148
"solve_zero_one_with_bounds_1",
4249
"solve_zero_one_with_bounds_2",
43-
"solve_zero_one_with_bounds_3"])
50+
"solve_zero_one_with_bounds_3",
51+
# FarkasDual tests: SDPA doesn't like proving infeasibility for these...
52+
"solve_farkas_equalto_upper",
53+
"solve_farkas_equalto_lower",
54+
"solve_farkas_lessthan",
55+
"solve_farkas_greaterthan",
56+
"solve_farkas_interval_lower",
57+
"solve_farkas_interval_upper",
58+
"solve_farkas_variable_lessthan",
59+
"solve_farkas_variable_lessthan_max",
60+
])
4461
end
62+
4563
@testset "Linear tests" begin
4664
# See explanation in `MOI/test/Bridges/lazy_bridge_optimizer.jl`.
4765
# This is to avoid `Variable.VectorizeBridge` which does not support

0 commit comments

Comments
 (0)