diff --git a/.github/workflows/python-linux.yml b/.github/workflows/python-linux.yml index aa7da6efd6..b7cffb7ee1 100644 --- a/.github/workflows/python-linux.yml +++ b/.github/workflows/python-linux.yml @@ -46,6 +46,7 @@ jobs: - name: Install the Python dependencies run: | pip install -e ".[test]" codecov + pip install git+https://github.com/blink1073/jupyter_client@filter-warnings - name: List installed packages run: | pip freeze @@ -86,7 +87,9 @@ jobs: - name: Install miniumum versions uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1 - name: Run the unit tests - run: pytest -vv + run: | + pip install git+https://github.com/blink1073/jupyter_client@filter-warnings + pytest -vv test_prereleases: name: Test Prereleases @@ -105,6 +108,7 @@ jobs: pip check - name: Run the tests run: | + pip install git+https://github.com/blink1073/jupyter_client@filter-warnings pytest -vv make_sdist: diff --git a/pyproject.toml b/pyproject.toml index dcb7c30e9f..d068a30d00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,30 @@ testpaths = [ ] timeout = 300 timeout_method = "thread" +filterwarnings= [ + # Fail on warnings + "error", + + # Workarounds for https://github.com/pytest-dev/pytest-asyncio/issues/77 + "ignore:unclosed