mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
18 lines
686 B
YAML
18 lines
686 B
YAML
name: Test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Run tests
|
|
run: |
|
|
rm -rf ~/.conda/envs/miplearn-test
|
|
yes | conda create --name miplearn-test python=3.8
|
|
julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/iSoron/CPLEXW.git")); Pkg.build("CPLEXW")'
|
|
julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/iSoron/TinyBnB.jl.git"))'
|
|
(cd /opt/gurobi900/linux64 && ~/.conda/envs/miplearn-test/bin/python setup.py install)
|
|
~/.conda/envs/miplearn-test/bin/pip install -r requirements.txt
|
|
~/.conda/envs/miplearn-test/bin/pytest
|
|
|