Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python 3.10 testing (and support) (#2257)
Administratively merging because @vltr and @ahopkins are the release managers, and @ahopkins is originator of the PR * Add Python 3.10 testing (and support) * fixed py310 tox environment for windows, quoted '3.10' in python-310 tests to avoid numeric compression * updated tox.ini for py310 * quoted the rest of the bare 3.10 references in the workflows * Issue with pytest requires version bump to 6.2.5 for python 3.10 Co-authored-by: Stephen Sadowski <stephen.sadowski@sjsadowski.com>
- Loading branch information
1 parent
6c7df68
commit f5bd6e3
Showing
7 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters