Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.10 testing (and support) #2257

Merged
merged 7 commits into from Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-bandit.yml
Expand Up @@ -16,6 +16,7 @@ jobs:
- { python-version: 3.7, tox-env: security}
- { python-version: 3.8, tox-env: security}
- { python-version: 3.9, tox-env: security}
- { python-version: 3.10, tox-env: security}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/pr-python310.yml
@@ -0,0 +1,50 @@
name: Python 3.10 Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- sanic/*
- tests/*

jobs:
testPy39:
name: ut-${{ matrix.config.tox-env }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
config:
- {
python-version: 3.10,
tox-env: py310,
ignore-error-flake: "false",
command-timeout: "0",
}
- {
python-version: 3.10,
tox-env: py310-no-ext,
ignore-error-flake: "true",
command-timeout: "600000",
}
steps:
- name: Checkout the Repository
uses: actions/checkout@v2
id: checkout-branch

- name: Run Unit Tests
uses: harshanarayana/custom-actions@main
with:
python-version: ${{ matrix.config.python-version }}
test-infra-tool: tox
test-infra-version: latest
action: tests
test-additional-args: "-e=${{ matrix.config.tox-env }},-vv=''"
experimental-ignore-error: "${{ matrix.config.ignore-error-flake }}"
command-timeout: "${{ matrix.config.command-timeout }}"
test-failure-retry: "3"
1 change: 1 addition & 0 deletions .github/workflows/pr-type-check.yml
Expand Up @@ -16,6 +16,7 @@ jobs:
- { python-version: 3.7, tox-env: type-checking}
- { python-version: 3.8, tox-env: type-checking}
- { python-version: 3.9, tox-env: type-checking}
- { python-version: 3.10, tox-env: type-checking}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-windows.yml
Expand Up @@ -15,6 +15,7 @@ jobs:
- { python-version: 3.7, tox-env: py37-no-ext }
- { python-version: 3.8, tox-env: py38-no-ext }
- { python-version: 3.9, tox-env: py39-no-ext }
- { python-version: 3.10, tox-env: py39-no-ext }
sjsadowski marked this conversation as resolved.
Show resolved Hide resolved
- { python-version: pypy-3.7, tox-env: pypy37-no-ext }

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-images.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -72,6 +72,7 @@ def open_local(paths, mode="r", encoding="utf8"):
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
"entry_points": {"console_scripts": ["sanic = sanic.__main__:main"]},
}
Expand Down