Skip to content

update build for github actions #223

update build for github actions

update build for github actions #223

Workflow file for this run

name: Build Package
on: [push]
jobs:
Build-Package-Linux:
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Update and install wget
run: |
sudo apt-get update
sudo apt-get install --yes wget
- name: Download libscip-linux.zip
run: |
wget https://github.com/jurgen-lentz/scipoptsuite-deploy/releases/download/v0.5.0/libscip-linux.zip -O gcg.zip
- name: Unzip the downloaded file
run: |
sudo apt-get install --yes unzip
unzip gcg.zip
ls -la
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: |
requirements.txt
- name: Prepare Python Environment
run: |
pip install -r requirements.txt
- name: Build & Install PyGCGOpt
run: |
pip install .
- name: Run PyGCGOpt tests
run: |
pytest .