@@ -74,22 +74,24 @@ jobs:
74
74
75
75
include :
76
76
- os : ubuntu-latest
77
+ test_docs : 1
77
78
TARGET : linux
78
79
PYENV : pip
79
80
80
81
- os : macos-latest
82
+ test_docs : 1
81
83
TARGET : osx
82
84
PYENV : pip
83
85
84
86
- os : windows-latest
87
+ test_docs : 1
85
88
TARGET : win
86
89
PYENV : conda
87
90
PACKAGES : glpk pytest-qt filelock
88
91
89
92
- os : ubuntu-latest
90
93
python : 3.11
91
94
other : /conda
92
- skip_doctest : 1
93
95
TARGET : linux
94
96
PYENV : conda
95
97
PACKAGES : pytest-qt
98
100
python : ' 3.10'
99
101
other : /mpi
100
102
mpi : 3
101
- skip_doctest : 1
102
103
TARGET : linux
103
104
PYENV : conda
104
105
PACKAGES : openmpi mpi4py
@@ -107,39 +108,34 @@ jobs:
107
108
python : 3.12
108
109
other : /cython
109
110
setup_options : --with-cython
110
- skip_doctest : 1
111
111
TARGET : linux
112
112
PYENV : pip
113
113
PACKAGES : cython
114
114
115
115
- os : windows-latest
116
116
python : 3.9
117
117
other : /pip
118
- skip_doctest : 1
119
118
TARGET : win
120
119
PYENV : pip
121
120
122
121
- os : ubuntu-latest
123
122
python : 3.11
124
123
other : /singletest
125
124
category : " -m 'neos or importtest'"
126
- skip_doctest : 1
127
125
TARGET : linux
128
126
PYENV : pip
129
127
130
128
- os : ubuntu-latest
131
129
python : 3.9
132
130
other : /slim
133
131
slim : 1
134
- skip_doctest : 1
135
132
TARGET : linux
136
133
PYENV : pip
137
134
138
135
- os : ubuntu-latest
139
136
python : 3.12
140
137
other : /numpy2
141
138
slim : 1
142
- skip_doctest : 1
143
139
TARGET : linux
144
140
PYENV : pip
145
141
PACKAGES : " gurobipy dill numpy>2.0 scipy networkx"
@@ -153,10 +149,18 @@ jobs:
153
149
154
150
- os : ubuntu-latest
155
151
python : ' pypy-3.10'
156
- skip_doctest : 1
157
152
TARGET : linux
158
153
PYENV : pip
159
154
155
+ - os : ubuntu-latest
156
+ python : 3.11
157
+ other : /rtd
158
+ category : notests
159
+ build_docs : 1
160
+ TARGET : linux
161
+ PYENV : pip
162
+
163
+
160
164
steps :
161
165
- name : Checkout Pyomo source
162
166
uses : actions/checkout@v4
@@ -703,7 +707,7 @@ jobs:
703
707
> ${SITE_PACKAGES}/run_coverage_at_startup.pth
704
708
705
709
- name : Download and install extensions
706
- if : ${{ ! matrix.slim }}
710
+ if : ${{ ! matrix.slim && matrix.category != 'notests' }}
707
711
run : |
708
712
echo ""
709
713
echo "Pyomo download-extensions"
@@ -727,7 +731,7 @@ jobs:
727
731
pyomo help --writers || exit 1
728
732
729
733
- name : Run Pyomo tests
730
- if : matrix.mpi == 0
734
+ if : ${{ matrix.mpi == 0 && matrix.category != 'notests' }}
731
735
run : |
732
736
export PATH=$PYOMO_PATH
733
737
$PYTHON_EXE -m pytest -v \
@@ -736,7 +740,7 @@ jobs:
736
740
`pwd`/examples `pwd`/doc --junitxml="TEST-pyomo.xml"
737
741
738
742
- name : Run Pyomo MPI tests
739
- if : matrix.mpi != 0
743
+ if : ${{ matrix.mpi != 0 && matrix.category != 'notests' }}
740
744
run : |
741
745
# Manually invoke the DAT parser so that parse_table_datacmds.py
742
746
# is fully generated by a single process before invoking MPI
@@ -748,8 +752,16 @@ jobs:
748
752
-m "mpi" -W ignore::Warning \
749
753
pyomo `pwd`/pyomo-model-libraries
750
754
755
+ - name : Build documentation
756
+ if : matrix.build_docs != 0
757
+ run : |
758
+ sudo apt-get -y install graphviz latexmk texlive texlive-latex-extra \
759
+ texlive-pictures
760
+ make -C doc/OnlineDocs html
761
+ make -C doc/OnlineDocs latexpdf
762
+
751
763
- name : Run documentation tests
752
- if : matrix.skip_doctest = = 0
764
+ if : matrix.test_docs ! = 0
753
765
run : |
754
766
make -C doc/OnlineDocs doctest -d
755
767
@@ -962,5 +974,5 @@ jobs:
962
974
files : coverage-other.xml
963
975
token : ${{ secrets.PYOMO_CODECOV_TOKEN }}
964
976
name : ${{ matrix.TARGET }}/other
965
- flags : ${{ matrix.TARGET }},other
977
+ flags : ${{ matrix.TARGET }}_other
966
978
fail_ci_if_error : true
0 commit comments