]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
👷 Add Python 3.10 beta to the CI (#1682)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Tue, 15 Jun 2021 10:59:30 +0000 (12:59 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Jun 2021 10:59:30 +0000 (11:59 +0100)
* 👷 Add Python 3.10 beta to the CI
* ⬆️ Upgrade pytest from 5.* to 6.*

.github/workflows/test-suite.yml
requirements.txt
tests/conftest.py

index eed46850a95e5953702f66ffa79f55cd4b38fa53..8b9c77d5f53ac4cd2fe36272cef66f76f699218d 100644 (file)
@@ -14,7 +14,7 @@ jobs:
 
     strategy:
       matrix:
-        python-version: ["3.6", "3.7", "3.8", "3.9"]
+        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-beta.2"]
 
     steps:
       - uses: "actions/checkout@v2"
index 839264f38336d22bc95240ef29109ca64e4a531c..129780642ef5a5da43ccedcf5b3d81fd9fa59a92 100644 (file)
@@ -20,7 +20,7 @@ flake8-pie==0.5.*
 isort==5.*
 mypy
 types-certifi
-pytest==5.*
+pytest==6.*
 pytest-asyncio
 pytest-trio
 trio
index 62c10c9fb4cf9acb51ca204e609721807af916be..3ac7167e7eab2fe104483c6cf8af9bbad86d1f19 100644 (file)
@@ -14,6 +14,7 @@ from cryptography.hazmat.primitives.serialization import (
     PrivateFormat,
     load_pem_private_key,
 )
+from typing_extensions import Literal
 from uvicorn.config import Config
 from uvicorn.main import Server
 
@@ -164,7 +165,7 @@ async def redirect_301(scope, receive, send):
     await send({"type": "http.response.body"})
 
 
-SERVER_SCOPE = "session"
+SERVER_SCOPE: Literal["session"] = "session"
 
 
 @pytest.fixture(scope=SERVER_SCOPE)