-
-
Notifications
You must be signed in to change notification settings - Fork 65
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 tests #102
Changes from all commits
f6389d8
86548a8
7ae816a
9a74e41
3fcba4a
09871bc
8c3db9f
792fce1
355de6b
57724b4
996d1f9
e328011
a9e03bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
--- | ||
name: Tests | ||
on: [push] | ||
on: [push, pull_request] | ||
jobs: | ||
linux-tests: | ||
name: Python ${{matrix.python-version}} tests on Linux | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"] | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-beta - 3.10", "pypy3"] | ||
|
||
steps: | ||
- name: Checkout repos | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
- name: Set up Python ${{matrix.python-version}} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.python-version}} | ||
architecture: x64 | ||
|
||
- name: Install Tox | ||
run: pip install tox | ||
run: pip install tox tox-gh-actions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This package is not necessary. Please organise the test suite as it is done in psycopg:
|
||
|
||
- name: Run tests | ||
run: tox -e ${{matrix.python-version}} -- -vrsx --color=yes | ||
run: tox -- -vrsx --color=yes | ||
|
||
windows-tests: | ||
name: Python ${{matrix.python-version}} tests on Windows ${{matrix.architecture}} | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
architecture: ['x64', 'x86'] | ||
python-version: [3.6, 3.7, 3.8, 3.9, "3.10.0-beta - 3.10"] | ||
architecture: ["x64", "x86"] | ||
|
||
steps: | ||
- name: Checkout repos | ||
|
@@ -44,7 +44,7 @@ jobs: | |
architecture: ${{matrix.architecture}} | ||
|
||
- name: Install Tox | ||
run: pip install tox | ||
run: pip install tox tox-gh-actions | ||
|
||
- name: Run tests | ||
run: tox -e ${{matrix.python-version}} -- -vrsx --color=yes | ||
run: tox -- -vrsx --color=yes |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
[gh-actions] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works for sure, as it runs in psycopg test suite:
|
||
python = | ||
3.6: py36 | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
|
||
[tox] | ||
envlist = 3.6, 3.7, 3.8, 3.9, pypy3 | ||
envlist = py36, py37, py38, py39, py310, pypy3 | ||
|
||
[testenv] | ||
commands = | ||
pytest {posargs} | ||
extras = | ||
test | ||
|
||
[testenv:3.6] | ||
[testenv:py36] | ||
basepython = python3.6 | ||
|
||
[testenv:3.7] | ||
[testenv:py37] | ||
basepython = python3.7 | ||
|
||
[testenv:3.8] | ||
[testenv:py38] | ||
basepython = python3.8 | ||
|
||
[testenv:3.9] | ||
[testenv:py39] | ||
basepython = python3.9 | ||
|
||
[testenv:py310] | ||
basepython = python3.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can specify "3.10" here, and then, on setting up python, you can go selective:
You could even rename
python-version
topython
. Less typing :)