@@ -113,6 +113,21 @@ jobs:
113
113
python -c "import sqlite3; print('sqlite version: ', sqlite3.sqlite_version)"
114
114
python -c "import setuptools; print('setuptools version: ', setuptools.__version__);"
115
115
116
+ - name : Update pip
117
+ run : python -m pip install --upgrade pip
118
+
119
+ - name : Install pytest and other packages needed for running tests
120
+ run : pip install flake8 mock pytest pytest-cov requests sphinx-tabs
121
+
122
+ - name : run flake8 - abort for syntax error, otherwise warn only
123
+ run : |
124
+ # stop the build for Python syntax errors or undefined names
125
+ # talgettext is a utility function ignore it.
126
+ flake8 roundup --count --select=E9,F63,F7,F82 --show-source --statistics --extend-exclude talgettext.py
127
+ # exit-zero treats all errors as warnings.
128
+ # The GitHub editor is 127 chars wide
129
+ flake8 roundup --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
130
+
116
131
# Install the databases
117
132
- name : Install mysql/mariadb
118
133
run : |
@@ -162,9 +177,6 @@ jobs:
162
177
sudo apt-get install redis
163
178
pip install redis
164
179
165
- - name : Update pip
166
- run : python -m pip install --upgrade pip
167
-
168
180
- name : Install python db libraries
169
181
run : pip install psycopg2 mysqlclient
170
182
@@ -218,24 +230,12 @@ jobs:
218
230
fi
219
231
case "$PYTHON_VERSION" in nightly) echo skipping xapian build;; *) make && sudo make install; esac
220
232
221
- - name : Install pytest and other packages needed for running tests
222
- run : pip install flake8 mock pytest pytest-cov requests sphinx-tabs
223
-
224
233
- name : Test build roundup and install locale so lang tests work.
225
234
run : |
226
235
sudo apt-get install gettext
227
236
python setup.py build
228
237
(cd locale; make local_install; ls -lR locale/de/LC_MESSAGES)
229
238
230
- - name : run flake8 - abort for syntax error, otherwise warn only
231
- run : |
232
- # stop the build for Python syntax errors or undefined names
233
- # talgettext is a utility function ignore it.
234
- flake8 roundup --count --select=E9,F63,F7,F82 --show-source --statistics --extend-exclude talgettext.py
235
- # exit-zero treats all errors as warnings.
236
- # The GitHub editor is 127 chars wide
237
- flake8 roundup --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
238
-
239
239
# Run the tests using pytest with test files in tests directory.
240
240
- name : Run tests
241
241
run : |
0 commit comments