Skip to content

Commit

Permalink
Merge pull request #83 from mariohsouto/joaquimg-workflow
Browse files Browse the repository at this point in the history
Update workflows
  • Loading branch information
joaquimg committed Feb 20, 2021
2 parents e05b3e8 + 3ce2dde commit 8b3c429
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: TagBot
on:
schedule:
- cron: 0 0 * * *
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI
on:
push:
branches:
- master
- release-*
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:
include:
- version: '1'
os: ubuntu-latest
arch: x64
- version: '1.0'
os: ubuntu-latest
arch: x64
- version: '1'
os: windows-latest
arch: x64
- version: '1.0'
os: windows-latest
arch: x64
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
with:
depwarn: error
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
4 changes: 4 additions & 0 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ end
matindices(n::Integer) = (LinearIndices(tril(trues(n,n))))[findall(tril(trues(n,n)))]

function MOI.optimize!(optimizer::Optimizer)
if optimizer.data === nothing
# optimize! has already been called and no new model has been copied
return
end

# @show "in opt"

Expand Down
8 changes: 7 additions & 1 deletion test/moitest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ end
"solve_zero_one_with_bounds_1",
"solve_zero_one_with_bounds_2",
"solve_zero_one_with_bounds_3",
"solve_farkas_interval_upper",
"solve_farkas_equalto_upper",
# not supported attributes
"number_threads",
# ArgumentError: The number of constraints in SCSModel must be greater than 0
# "solve_unbounded_model", # takes very long becaus only stop by time limit
]
)
MOIT.solve_farkas_interval_upper(bridged, config)
MOIT.solve_farkas_equalto_upper(bridged, config)
end

@testset "MOI Continuous Linear" begin
Expand All @@ -76,7 +80,8 @@ end
# MOIT.linear12test(MOIB.full_bridge_optimizer(optimizer_high_acc, Float64), config)
MOIT.contlineartest(bridged, config, [
# infeasible/unbounded
# "linear8a", "linear8b", "linear8c", "linear12",
"linear8a",
#"linear8b", "linear8c", "linear12",
# poorly conditioned
"linear10",
"linear5",
Expand All @@ -85,6 +90,7 @@ end
"partial_start",
]
)
MOIT.linear8atest(MOIB.full_bridge_optimizer(optimizer_high_acc, Float64), config)
MOIT.linear9test(MOIB.full_bridge_optimizer(optimizer_high_acc, Float64), config)
MOIT.linear5test(MOIB.full_bridge_optimizer(optimizer_high_acc, Float64), config)
MOIT.linear10test(MOIB.full_bridge_optimizer(optimizer_high_acc, Float64), config)
Expand Down

0 comments on commit 8b3c429

Please sign in to comment.