Skip to content

Add CI support for Python 3.11 #11285

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,17 @@ jobs:
- 3.8
- 3.9
- "3.10"
#- "3.11.0-alpha - 3.11.0"

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Get Python version
run: echo python_version=$(python3 -c "import sys; print('.'.join(str(v) for v in sys.version_info[:2]))") >> $GITHUB_ENV

- name: Install Ubuntu dependencies
if: matrix.os == 'Ubuntu'
run: sudo apt-get install bzr
Expand All @@ -130,17 +134,17 @@ jobs:
if: matrix.os == 'MacOS'
run: brew install bzr

- run: pip install nox 'virtualenv<20' 'setuptools != 60.6.0'
- run: pip install nox 'virtualenv' 'setuptools != 60.6.0'

# Main check
- name: Run unit tests
run: >-
nox -s test-${{ matrix.python }} --
nox -s test-${{ env.python_version }} --
-m unit
--verbose --numprocesses auto --showlocals
- name: Run integration tests
run: >-
nox -s test-${{ matrix.python }} --
nox -s test-${{ env.python_version }} --
-m integration
--verbose --numprocesses auto --showlocals
--durations=5
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def should_update_common_wheels() -> bool:
# -----------------------------------------------------------------------------
# Development Commands
# -----------------------------------------------------------------------------
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3"])
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"])
def test(session: nox.Session) -> None:
# Get the common wheels.
if should_update_common_wheels():
Expand Down