Update nchoosek_constraint.md #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Black, flake8 & isort | |
run: | | |
pip install black==22.3.0 isort==5.9.3 flake8==3.9.2 | |
black --check doe test | |
flake8 --verbose doe test | |
isort . --check-only --verbose | |
- name: Install cyipopt | |
run: | | |
sudo apt-get -y --no-install-recommends install \ | |
coinor-libipopt1v5 \ | |
coinor-libipopt-dev \ | |
libblas-dev \ | |
liblapack-dev \ | |
g++ \ | |
gfortran \ | |
pkg-config | |
pip install ipopt | |
pip install .[tests] | |
- name: Run tests | |
run: | | |
pytest |