From 6c59fd612ab729bb44495225178f2dc69cb2e790 Mon Sep 17 00:00:00 2001 From: Matthew Einhorn Date: Tue, 25 Jun 2019 22:54:18 -0400 Subject: [PATCH] Add pytest_asyncio to CI to run async tests. --- .travis.yml | 6 +++--- appveyor.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41500d296..5a6f10309 100644 --- a/.travis.yml +++ b/.travis.yml @@ -71,7 +71,7 @@ install: sudo apt-get -y install xvfb pulseaudio xsel; export CYTHON_INSTALL=$(KIVY_NO_CONSOLELOG=1 python3 -c "from kivy.tools.packaging.cython_cfg import get_cython_versions; print(get_cython_versions()[0])" --config "kivy:log_level:error"); python3 -m pip install -I "$CYTHON_INSTALL"; - python3 -m pip install --upgrade pillow pytest coveralls docutils PyInstaller; + python3 -m pip install --upgrade pillow pytest pytest_asyncio coveralls docutils PyInstaller; fi; if [ "${RUN}" == "docs" ]; then python3 -m pip install --upgrade sphinx==1.7.9 sphinxcontrib-blockdiag sphinxcontrib-seqdiag sphinxcontrib-actdiag sphinxcontrib-nwdiag; @@ -117,7 +117,7 @@ install: python3 get-pip.py --user; export CYTHON_INSTALL=$(KIVY_NO_CONSOLELOG=1 python3 -c "from kivy.tools.packaging.cython_cfg import get_cython_versions; print(get_cython_versions()[0])" --config "kivy:log_level:error"); python3 -m pip install -I --user "$CYTHON_INSTALL"; - python3 -m pip install --upgrade --user pillow pytest mock docutils PyInstaller; + python3 -m pip install --upgrade --user pillow pytest pytest_asyncio mock docutils PyInstaller; fi; before_script: @@ -213,7 +213,7 @@ script: python$pyver_short -m pip install --upgrade --user pip setuptools wheel; python$pyver_short -m pip install -I --user "$CYTHON_INSTALL"; - python$pyver_short -m pip install --upgrade --user pytest wheel pillow mock docutils; + python$pyver_short -m pip install --upgrade --user pytest pytest_asyncio wheel pillow mock docutils; python$pyver_short -m pip install --upgrade delocate; USE_SDL2=1 USE_GSTREAMER=1 python$pyver_short setup.py build_ext --inplace>output.txt; diff --git a/appveyor.yml b/appveyor.yml index 7c14b5f9e..c9fc07d8d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -141,7 +141,7 @@ build_script: Check-Error } - pip install mock cython pygments docutils pytest pyinstaller kivy_deps.glew_dev kivy_deps.glew kivy_deps.gstreamer_dev kivy_deps.sdl2_dev kivy_deps.sdl2 + pip install mock cython pygments docutils pytest pytest_asyncio pyinstaller kivy_deps.glew_dev kivy_deps.glew kivy_deps.gstreamer_dev kivy_deps.sdl2_dev kivy_deps.sdl2 pip --no-cache-dir install kivy_deps.gstreamer