You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
663 B
18 lines
663 B
name: Test
|
|
on: push
|
|
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.6
|
|
julia --project=src/julia -e 'using Pkg; Pkg.instantiate()'
|
|
(cd /opt/gurobi900/linux64 && ~/.conda/envs/miplearn-test/bin/python setup.py install)
|
|
(cd /opt/cplex-12.8/cplex/python/3.6/x86-64_linux && ~/.conda/envs/miplearn-test/bin/python setup.py install)
|
|
~/.conda/envs/miplearn-test/bin/pip install -r src/python/requirements.txt
|
|
~/.conda/envs/miplearn-test/bin/pytest src/python
|
|
|