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: - env:
ELECTRUM_PYTHON_VERSION: 3.10 ELECTRUM_PYTHON_VERSION: 3.10
- env: - env:
ELECTRUM_PYTHON_VERSION: 3 ELECTRUM_PYTHON_VERSION: 3.11
- env: - env:
ELECTRUM_PYTHON_VERSION: rc 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 - name: Tox PyPy
allow_failures: true allow_failures: true
env: env:
@@ -38,6 +44,8 @@ task:
- apt-get -y install libsecp256k1-0 - apt-get -y install libsecp256k1-0
- pip install -r $ELECTRUM_REQUIREMENTS_CI - pip install -r $ELECTRUM_REQUIREMENTS_CI
tox_script: tox_script:
- export PYTHONASYNCIODEBUG
- export PYTHONDEVMODE
- tox - tox
coveralls_script: coveralls_script:
- if [ ! -z "$COVERALLS_REPO_TOKEN" ] ; then coveralls ; fi - if [ ! -z "$COVERALLS_REPO_TOKEN" ] ; then coveralls ; fi

View File

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