Skip to content

update build

update build #228

Workflow file for this run

name: Build Package
on: [push]
jobs:
Build-Package-Linux:
runs-on: ubuntu-20.04
env:
SCIPOPTDIR: ${{ github.workspace }}/scip_install
LD_LIBRARY_PATH: ${{ github.workspace }}/scip_install/lib:${{ env.LD_LIBRARY_PATH }}

Check failure on line 10 in .github/workflows/build-package.yml

View workflow run for this annotation

GitHub Actions / Build Package

Invalid workflow file

The workflow is not valid. .github/workflows/build-package.yml (Line: 10, Col: 24): Unrecognized named-value: 'env'. Located at position 1 within expression: env.LD_LIBRARY_PATH .github/workflows/build-package.yml (Line: 11, Col: 26): Unrecognized named-value: 'env'. Located at position 1 within expression: env.DYLD_LIBRARY_PATH
DYLD_LIBRARY_PATH: ${{ github.workspace }}/scip_install/lib:${{ env.DYLD_LIBRARY_PATH }}
PATH: ${{ github.workspace }}/scip_install/bin:${{ env.PATH }}
PKG_CONFIG_PATH: ${{ github.workspace }}/scip_install/lib/pkgconfig:${{ env.PKG_CONFIG_PATH }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
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
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Prepare python environment
run: |
python -m pip install --upgrade pip
python -m pip install cython pytest
python -m pip install pyscipopt==5.2.1 --no-binary=:all:
- name: Build & Install PyGCGOpt
run: |
pip install .
- name: Run PyGCGOpt tests
run: |
pytest .