Skip to content

Commit

Permalink
👷 Add Python 3.10 beta to the CI (#1682)
Browse files Browse the repository at this point in the history
* 👷 Add Python 3.10 beta to the CI
* ⬆️ Upgrade pytest from 5.* to 6.*
  • Loading branch information
Kludex authored Jun 15, 2021
1 parent f818a02 commit 3231211
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ flake8-pie==0.5.*
isort==5.*
mypy
types-certifi
pytest==5.*
pytest==6.*
pytest-asyncio
pytest-trio
trio
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
PrivateFormat,
load_pem_private_key,
)
from typing_extensions import Literal
from uvicorn.config import Config
from uvicorn.main import Server

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3231211

Please sign in to comment.