Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github actions #734

Merged
merged 2 commits into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Code Quality
run: |
pip install black
black pulp/ --check
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -27,21 +31,18 @@ jobs:
sudo apt-get update -qq
sudo apt-get install -qq glpk-utils
- name: install xpress
if: (matrix.os != 'macOS-latest' || matrix.python-version < '3.11') && matrix.python-version < '3.12'
if: matrix.os != 'macOS-latest' && matrix.python-version != '3.12'
run: pip install xpress
- name: Install gurobipy
run: |
python -m pip install gurobipy
- name: Install highspy
if: (matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest') && matrix.python-version < '3.12'
if: matrix.python-version != '3.12'
# alternatively if: contains(fromJSON("['3.7', '3.8', '3.9', '3.10', '3.11']"), matrix.python-version)
run: |
pip install highspy numpy
- name: Install coptpy
run: |
pip install coptpy
- name: Test with pulptest
run: pulptest
- name: Code Quality
run: |
pip install black
black pulp/ --check