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

Check 3.11 support v3 #2468

Merged
merged 1 commit into from Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
29 changes: 12 additions & 17 deletions .github/workflows/check.yml
Expand Up @@ -19,9 +19,10 @@ jobs:
fail-fast: false
matrix:
py:
- "3.11.0-beta.4"
- "pypy-3.7-v7.3.9" # ahead to start it earlier because takes longer
- "pypy-2.7-v7.3.9" # ahead to start it earlier because takes longer
- "3.10"
- "pypy-3.7-v7.3.7" # ahead to start it earlier because takes longer
- "pypy-2.7-v7.3.6" # ahead to start it earlier because takes longer
- "3.9"
- "3.8"
- "3.7"
Expand All @@ -30,9 +31,8 @@ jobs:
- "2.7"
os:
- ubuntu-20.04
- macos-12
- windows-2022
- macos-10.15

steps:
- name: Setup python for tox
uses: actions/setup-python@v4
Expand All @@ -49,16 +49,11 @@ jobs:
python-version: ${{ matrix.py }}
- name: Pick environment to run
run: |
import codecs
import os
import platform
import sys
cpy = platform.python_implementation() == "CPython"
base =("{}{}{}" if cpy else "{}{}").format("py" if cpy else "pypy", *sys.version_info[0:2])
env = "TOXENV={}\n".format(base)
print("Picked:\n{}for{}".format(env, sys.version))
import codecs; import os; import platform; import sys
env = 'TOXENV=py{}{}{}'.format("" if platform.python_implementation() == "CPython" else "py", sys.version_info.major, sys.version_info.minor)
print("Picked: {} for {} based of {}".format(env, sys.version, sys.executable))
with codecs.open(os.environ["GITHUB_ENV"], "a", "utf-8") as file_handler:
file_handler.write(env)
file_handler.write(env)
shell: python
- name: Setup test suite
run: tox -vv --notest
Expand All @@ -79,7 +74,7 @@ jobs:

coverage:
name: Combine coverage
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: test
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -116,7 +111,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- windows-2022
tox_env:
- dev
Expand All @@ -142,7 +137,7 @@ jobs:
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [ check, coverage ]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Setup python to build package
uses: actions/setup-python@v4
Expand All @@ -156,7 +151,7 @@ jobs:
- name: Build sdist and wheel
run: python -m build -s -w . -o dist
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
skip_existing: true
user: __token__
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
@@ -1,6 +1,7 @@
[tox]
envlist =
fix_lint
py311
py310
py39
py38
Expand Down Expand Up @@ -73,7 +74,7 @@ commands =
coverage xml -o {toxworkdir}/coverage.xml
coverage html -d {toxworkdir}/htmlcov
diff-cover --compare-branch {env:DIFF_AGAINST:origin/master} {toxworkdir}/coverage.xml
depends = py27, py35, py36, py37, py38, py39, py310, pypy, pypy3
depends = py27, py35, py36, py37, py38, py39, py310, py311, pypy, pypy3

[testenv:docs]
description = invoke sphinx-build to build the HTML docs
Expand Down