Skip to content

Commit 1bffc2a

Browse files
committed
chore: still debugging #3
Add pytest-env module to suppress warning from pytest for missing setting. Run whole sqlite not just the failing test to get traceback/data. Running just the one failing test passes.
1 parent 5f84495 commit 1bffc2a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci-test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@ jobs:
136136
- name: Update pip
137137
run: python -m pip install --upgrade pip
138138

139-
# note pytest-env is not needed for redis password as there is
140-
# no password on CI's redis. pytest-subtests isn't needed with
139+
# note pytest-env is not required for redis password as there is
140+
# no password on CI's redis. But pytst logs a warning if it's
141+
# missing. pytest-subtests isn't needed with
141142
# pytest 9.0.0+, but 9.0 only supports 3.10+ so include for 3.7+.
142143
- name: Install pytest and other packages needed for running tests
143-
run: pip install flake8 hypothesis mock pytest pytest-cov pytest-subtests requests sphinx-tabs
144+
run: pip install flake8 hypothesis mock pytest pytest-cov pytest-env pytest-subtests requests sphinx-tabs
144145

145146
# https://github.com/mxschmitt/action-tmate
146147
# allow remote ssh into the CI container. I need this to debug
@@ -290,15 +291,15 @@ jobs:
290291
- name: Run tests
291292
run: |
292293
if [[ "$PYTHON_VERSION" != "2."* ]]; then
293-
PYTHONTRACEMALLOC=20 pytest -r a \
294+
pytest -r a \
294295
--durations=20 \
295296
-W default \
296297
-W "ignore:SelectableGroups:DeprecationWarning" \
297298
-W "ignore:the imp module:DeprecationWarning:gpg.gpgme:15" \
298299
-W "ignore:'U' mode::docutils.io" \
299300
-W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" \
300301
-W "ignore:unclosed file:ResourceWarning:enum" \
301-
-v -k testBadFormAttributeErrorException test/test_sqlite.py --cov=roundup
302+
-v test/test_sqlite.py --cov=roundup
302303
#coverage lcov
303304
else
304305
# python2 case

0 commit comments

Comments
 (0)