Skip to content

Change docstring style to numpydocs #425

Change docstring style to numpydocs

Change docstring style to numpydocs #425

Workflow file for this run

name: Run tests with coverage
env:
version: 9.1.0
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
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-ubuntu20.deb
sudo apt-get update && sudo apt install -y ./SCIPOptSuite-${{ env.version }}-Linux-ubuntu20.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: |
export CFLAGS="-O0 -ggdb" # disable compiler optimizations for faster builds
python -m pip install .
- name: Run pyscipopt tests
run: |
sudo apt-get install tzdata locales -y && sudo locale-gen pt_PT && sudo update-locale # add pt_PT locale that is used in tests
coverage run -m pytest
coverage report -m
coverage xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false