Repository: encode/uvicorn (branch: dependabot/pip/python-packages-6ae2cf5cd5)
Commit date: 2024-01-15T07:34:37Z

Workflow file: .github/workflows/test-suite.yml (Test Suite)
---
name: Test Suite

on:
  push:
    branches: ["master"]
  pull_request:
    branches: ["master"]

jobs:
  tests:
    name: "Python ${{ matrix.python-version }} ${{ matrix.os }}"
    runs-on: "${{ matrix.os }}"
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080
    strategy:
      matrix:
        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
        os: [windows-latest, ubuntu-latest, macos-latest]
    steps:
      - uses: "actions/checkout@v4"
      - uses: "actions/setup-python@v5"
        with:
          python-version: "${{ matrix.python-version }}"
      - name: "Install dependencies"
        run: "scripts/install"
        shell: bash
      - name: "Run linting checks"
        run: "scripts/check"
        shell: bash
        if: "${{ matrix.os == 'ubuntu-latest'}}"
      - name: "Build package & docs"
        run: "scripts/build"
        shell: bash
      - name: "Run tests"
        run: "scripts/test"
        shell: bash
      - name: "Enforce coverage"
        run: "scripts/coverage"
        shell: bash

env:
  PIP_INDEX_URL: http://localhost:8629/2024-01-15
  UV_INDEX_URL: http://localhost:8629/2024-01-15


Failed build logs:
step_name: Python 3.8 ubuntu-latest/5_Run linting checks.txt
log: ##[group]Run scripts/check
[36;1mscripts/check[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
##[endgroup]
+ ./scripts/sync-version
+ ruff format --check --diff uvicorn tests
66 files already formatted
+ mypy uvicorn tests
tests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type "Type[WSGIMiddleware]"; expected "Type[object]"  [list-item]
Found 1 error in 1 file (checked 66 source files)
##[error]Process completed with exit code 1.

step_name: Python 3.9 ubuntu-latest/5_Run linting checks.txt
log: ##[group]Run scripts/check
[36;1mscripts/check[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib
##[endgroup]
+ ./scripts/sync-version
+ ruff format --check --diff uvicorn tests
66 files already formatted
+ mypy uvicorn tests
tests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type "type[WSGIMiddleware]"; expected "type[object]"  [list-item]
Found 1 error in 1 file (checked 66 source files)
##[error]Process completed with exit code 1.

step_name: Python 3.10 ubuntu-latest/5_Run linting checks.txt
log: ##[group]Run scripts/check
[36;1mscripts/check[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib
##[endgroup]
+ ./scripts/sync-version
+ ruff format --check --diff uvicorn tests
66 files already formatted
+ mypy uvicorn tests
tests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type "type[WSGIMiddleware]"; expected "type[object]"  [list-item]
Found 1 error in 1 file (checked 66 source files)
##[error]Process completed with exit code 1.

step_name: Python 3.11 ubuntu-latest/5_Run linting checks.txt
log: ##[group]Run scripts/check
[36;1mscripts/check[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib
##[endgroup]
+ ./scripts/sync-version
+ ruff format --check --diff uvicorn tests
66 files already formatted
+ mypy uvicorn tests
tests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type "type[WSGIMiddleware]"; expected "type[object]"  [list-item]
Found 1 error in 1 file (checked 66 source files)
##[error]Process completed with exit code 1.


Changed files:
tests/middleware/test_wsgi.py

Fix diff:
diff --git a/tests/middleware/test_wsgi.py b/tests/middleware/test_wsgi.py
index 34730ec..00ff40c 100644
--- a/tests/middleware/test_wsgi.py
+++ b/tests/middleware/test_wsgi.py
@@ -50,7 +50,7 @@ def return_exc_info(environ: Environ, start_response: StartResponse) -> List[byt
         return [output]
 
 
-@pytest.fixture(params=[wsgi._WSGIMiddleware, a2wsgi.WSGIMiddleware])
+@pytest.fixture(params=[wsgi._WSGIMiddleware, a2wsgi.WSGIMiddleware])  # type: ignore
 def wsgi_middleware(request: pytest.FixtureRequest) -> Callable:
     return request.param