diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 558571c9..cd9f26ca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ on: jobs: linux: name: ${{ matrix.PLATFORM }} py${{ matrix.PYTHON_VERSION }} - runs-on: ${{ matrix.PLATFORM }} + runs-on: ${{ matrix.PLATFORM }}-latest env: CI: True PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} @@ -20,8 +20,11 @@ jobs: strategy: fail-fast: false matrix: - PYTHON_VERSION: ['3.6', '3.8'] - PLATFORM: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + PYTHON_VERSION: ['3.6', '3.9', 'pypy3'] + PLATFORM: ['ubuntu', 'macos', 'windows'] + exclude: + - PLATFORM: windows + PYTHON_VERSION: pypy3 steps: - name: Checkout uses: actions/checkout@v1 @@ -37,12 +40,15 @@ jobs: architecture: 'x64' - name: Install python dependencies run: | - pip install setuptools pip --upgrade --user + pip install setuptools pip wheel --upgrade --user + - name: Install project dependencies + run: | pip install -v -e ".[test]" - name: Show python environment run: | python --version - python -m pip list + python -m pip freeze + python -m pip check - name: Run python tests # See `setup.cfg` for full test options run: | diff --git a/jupyterlab_server/tests/utils.py b/jupyterlab_server/tests/utils.py index bc7f8970..b7a22c70 100755 --- a/jupyterlab_server/tests/utils.py +++ b/jupyterlab_server/tests/utils.py @@ -20,7 +20,7 @@ def maybe_patch_ioloop(): """ a windows 3.8+ patch for the asyncio loop """ - if sys.platform.startswith("win"): + if sys.platform.startswith("win") and tornado.version_info < (6, 1): if sys.version_info >= (3, 8): import asyncio try: