Browse Source

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.
master
SomberNight 3 years ago
parent
commit
f5eabaff55
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 10
      .cirrus.yml
  2. 3
      tox.ini

10
.cirrus.yml

@ -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

3
tox.ini

@ -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

Loading…
Cancel
Save