2323 PYTHON_CORE_PKGS : wheel
2424 PYPI_ONLY : z3-solver linear-tree
2525 PYPY_EXCLUDE : scipy numdifftools seaborn statsmodels linear-tree
26- CACHE_VER : v221013.1
26+ CACHE_VER : v250827.0
27272828 SRC_REF : ${{ github.head_ref || github.ref }}
2929 PYOMO_WORKFLOW : branch
4444 python-version : ' 3.10'
4545 - name : Black Formatting Check
4646 run : |
47- # Note v24.4.1 fails due to a bug in the parser
47+ # Note v24.4.1 fails due to a bug in the parser. Project-level
48+ # configuration is inherited from pyproject.toml.
4849 pip install 'black!=24.4.1'
49- black . -S -C -- check --diff --exclude examples/pyomobook/python-ch/BadIndent.py
50+ black . -- check --diff
5051 - name : Spell Check
5152 uses : crate-ci/typos@master
5253 with :
6364 verbose : true
6465 # How many times to retry a failed request (defaults to 1)
6566 retry_count : 3
66- # Exclude Jenkins because it's behind a firewall; ignore RTD because
67- # a magically-generated string is triggering a failure
67+ # Exclude:
68+ # - Jenkins because it's behind a firewall
69+ # - RTD because a magically-generated string triggers failures
6870 exclude_urls : https://pyomo-jenkins.sandia.gov/,https://pyomo.readthedocs.io/en/%s/errors.html
71+ # Exclude:
72+ # - All gnu.org links because they consistently fail the checker
73+ exclude_patterns : https://www.gnu.org
6974
7075
7176 build :
@@ -142,7 +147,6 @@ jobs:
142147 else
143148 echo "GHA_JOBGROUP=other" >> $GITHUB_ENV
144149 fi
145- # Note: pandas 1.0.3 causes gams 29.1.0 import to fail in python 3.8
146150 EXTRAS=tests
147151 if test -z "${{matrix.slim}}"; then
148152 EXTRAS="$EXTRAS,docs,optional"
@@ -174,7 +178,7 @@ jobs:
174178 id : download-cache
175179 with :
176180 path : cache/download
177- key : download-${{env.CACHE_VER}}.0 -${{runner.os}}
181+ key : download-${{env.CACHE_VER}}-${{runner.os}}
178182
179183 - name : Configure curl
180184 run : |
@@ -348,7 +352,7 @@ jobs:
348352 if test "${{matrix.TARGET}}" == linux; then
349353 EXCLUDE="casadi numdifftools $EXCLUDE"
350354 fi
351- if [[ "${{matrix.TARGET}}" == win && "${{matrix.python}}" == " 3.13" ]]; then
355+ if [[ "${{matrix.TARGET}}" == win && "${{matrix.python}}" == 3.13* ]]; then
352356 # As of Nov 7, 2024, qtconsole is not compatible with python 3.13 on win
353357 EXCLUDE="qtconsole $EXCLUDE"
354358 fi
@@ -373,7 +377,7 @@ jobs:
373377 fi
374378 # Note: this will fail the build if any installation fails (or
375379 # possibly if it outputs messages to stderr)
376- conda install --update-deps -q -y $CONDA_DEPENDENCIES
380+ conda install --update-deps -q -y python="${{matrix.python}}" $CONDA_DEPENDENCIES
377381 if test -z "${{matrix.slim}}"; then
378382 # xpress.init() (xpress 9.5.1 from conda) hangs indefinitely
379383 # on GHA/Windows under Python 3.10 and 3.11. Exclude that
@@ -534,9 +538,8 @@ jobs:
534538 echo "DYLD_LIBRARY_PATH=${env:DYLD_LIBRARY_PATH}:$GAMS_DIR" `
535539 Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
536540 $INSTALLER = "${env:DOWNLOAD_DIR}/gams_install.exe"
537- # We are pinning to 29.1.0 because a license is required for
538- # versions after this in order to run in demo mode.
539- $URL = "https://d37drm4t2jghv5.cloudfront.net/distributions/29.1.0"
541+ # Demo licenses are included for 5mo from the newest release
542+ $URL = "https://d37drm4t2jghv5.cloudfront.net/distributions/latest"
540543 if ( "${{matrix.TARGET}}" -eq "win" ) {
541544 $URL = "$URL/windows/windows_x64_64.exe"
542545 } elseif ( "${{matrix.TARGET}}" -eq "osx" ) {
@@ -654,14 +657,15 @@ jobs:
654657
655658 - name : Install Pyomo
656659 run : |
660+ export PYOMO_SETUP_ARGS=${{ matrix.setup_options }}
657661 echo ""
658662 echo "Clone Pyomo-model-libraries..."
659663 URL=https://github.com/Pyomo/pyomo-model-libraries.git
660664 git clone -b ${SRC_REF##*/} $URL || git clone -b main $URL
661665 echo ""
662666 echo "Install Pyomo..."
663667 echo ""
664- $PYTHON_EXE setup.py develop ${{matrix.setup_options}}
668+ $PYTHON_EXE -m pip install -e .
665669 echo ""
666670 echo "Set custom PYOMO_CONFIG_DIR"
667671 echo ""
@@ -790,7 +794,7 @@ jobs:
790794 echo ""
791795 echo "Install Pyomo..."
792796 echo ""
793- python setup.py develop
797+ python -m pip install -e .
794798 echo ""
795799 echo "Set custom PYOMO_CONFIG_DIR"
796800 echo ""
@@ -868,13 +872,14 @@ jobs:
868872
869873 - name : Install Pyomo
870874 run : |
875+ export PYOMO_SETUP_ARGS=${{ matrix.setup_options }}
871876 echo ""
872877 echo "Clone Pyomo-model-libraries..."
873878 git clone https://github.com/Pyomo/pyomo-model-libraries.git
874879 echo ""
875880 echo "Install Pyomo..."
876881 echo ""
877- $PYTHON_EXE setup.py develop ${{matrix.setup_options}}
882+ $PYTHON_EXE -m pip install -e .
878883 echo ""
879884 echo "Set custom PYOMO_CONFIG_DIR"
880885 echo ""
0 commit comments