Skip to content

Delete double declaration of SCIPgetEventhdlr #31

Delete double declaration of SCIPgetEventhdlr

Delete double declaration of SCIPgetEventhdlr #31

Workflow file for this run

name: Run tests with coverage
env:
version: 8.0.3
# runs on branches and pull requests; doesn't run on tags.
on:
push:
branches:
- '**'
pull_request:
jobs:
test-coverage:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Install dependencies (SCIPOptSuite)
run: |
wget --quiet --no-check-certificate https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/SCIPOptSuite-${{ env.version }}-Linux-ubuntu.deb
sudo apt-get update && sudo apt install -y ./SCIPOptSuite-${{ env.version }}-Linux-ubuntu.deb
- 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 networkx cython pytest-cov
- name: Install PySCIPOpt
run: python -m pip install .
- name: Run pyscipopt tests
run: |
coverage run -m pytest
coverage report -m
coverage xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true