1
0

ci: also run unit tests with PYTHONASYNCIODEBUG=1

This can reveal additional asyncio-related bugs,
and due to also enabling the full "debug mode", maybe more.
This commit is contained in:
SomberNight
2023-02-20 12:00:38 +00:00
parent 9a5496cfd8
commit f5eabaff55
2 changed files with 12 additions and 1 deletions

View File

@@ -17,9 +17,15 @@ task:
- env:
ELECTRUM_PYTHON_VERSION: 3.10
- env:
ELECTRUM_PYTHON_VERSION: 3
ELECTRUM_PYTHON_VERSION: 3.11
- env:
ELECTRUM_PYTHON_VERSION: rc
- name: Tox Python 3 debug mode
env:
ELECTRUM_PYTHON_VERSION: 3
# enable additional checks:
PYTHONASYNCIODEBUG: "1"
PYTHONDEVMODE: "1"
- name: Tox PyPy
allow_failures: true
env:
@@ -38,6 +44,8 @@ task:
- apt-get -y install libsecp256k1-0
- pip install -r $ELECTRUM_REQUIREMENTS_CI
tox_script:
- export PYTHONASYNCIODEBUG
- export PYTHONDEVMODE
- tox
coveralls_script:
- if [ ! -z "$COVERALLS_REPO_TOKEN" ] ; then coveralls ; fi

View File

@@ -4,6 +4,9 @@
deps=
pytest
coverage
passenv=
PYTHONASYNCIODEBUG
PYTHONDEVMODE
commands=
coverage run --source=electrum '--omit=electrum/gui/*,electrum/plugins/*,electrum/scripts/*,electrum/tests/*' -m pytest -v
coverage report