Skip to content

Commit

Permalink
Add GitHub actions (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 18, 2024
1 parent 504dc8e commit 02a9fd0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions .TODO.github/workflows/ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
strategy:
fail-fast: false
matrix:
# Since MathOptAI doesn't have binary dependencies, only test on a subset of
# possible platforms.
# Since MathOptAI doesn't have binary dependencies, only test on a
# subset of possible platforms.
include:
- version: '1' # The latest point-release (Linux)
- version: '1.10'
os: ubuntu-latest
arch: x64
steps:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions test/test_DecisionTree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function test_DecisionTree()
@variable(model, 0 <= x[1:2] <= 1)
y, formulation = MathOptAI.add_predictor(model, ml_model, x)
@constraint(model, c_rhs, x .== 0.0)
@objective(model, Min, sum(y))
for _ in 1:10
xi = rand(rng, 2)
if minimum(abs.(xi .- [0.5, 0.3])) < 1e-2
Expand Down
2 changes: 1 addition & 1 deletion test/test_Flux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function test_gray_box_vector_output_hessian()
@test length(y) == 2
@objective(model, Max, sum(y))
optimize!(model)
@test termination_status(model) == ITERATION_LIMIT
@test termination_status(model) in (LOCALLY_SOLVED, ITERATION_LIMIT)
@test isapprox(value.(y), chain(Float32.(value.(x))); atol = 1e-2)
return
end
Expand Down

0 comments on commit 02a9fd0

Please sign in to comment.