Skip to content

Commit

Permalink
[CI] python 3.12 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelauv committed Jan 14, 2024
1 parent a55729b commit 4c87e39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10" ,"3.11"]
python-version: ["3.8", "3.9", "3.10" ,"3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -20,13 +20,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ pytest-asyncio
aioresponses
aiohttp
fastapi
httpx
uvicorn[standard]
httpx
3 changes: 1 addition & 2 deletions src/fastAPI_aiohttp/fastAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from fastapi.logger import logger as fastAPI_logger # convenient name
from fastapi.requests import Request
from fastapi.responses import Response
import uvicorn

SIZE_POOL_AIOHTTP = 100

Expand Down Expand Up @@ -89,5 +88,5 @@ async def endpoint_stream(request: Request):


if __name__ == '__main__': # local dev

import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)

0 comments on commit 4c87e39

Please sign in to comment.