ANL-CEEESA / UnitCommitment.jl

Optimization package for the Security-Constrained Unit Commitment Problem
Other
106 stars 24 forks source link

Fix make test pipeline #5

Closed mtanneau closed 3 years ago

mtanneau commented 3 years ago

The current make test runs the following command (I'm omitting the sysimage for brevity)

julia --project=@. test/runtests.jl

This pipeline was broken by #2, which made Cbc and Test test-only dependencies. If you run make test on the current dev branch, you will get an error Cbc not installed.

This PR fixes that, and uses the same pipeline for make test as that used in CI:

julia --project=@. -e 'using Pkg; Pkg.test("UnitCommitment")'

Running tests via Julia's Pkg ensures that all test-only dependencies are properly installed.