Skip to content

Commit

Permalink
Merge pull request #4013 from minrk/test-311
Browse files Browse the repository at this point in the history
Test 3.11
  • Loading branch information
minrk committed Aug 10, 2022
2 parents f3d17eb + 87c745d commit bb52351
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -71,6 +71,8 @@ jobs:
# NOTE: Since only the value of these parameters are presented in the
# GitHub UI when the workflow run, we avoid using true/false as
# values by instead duplicating the name to signal true.
# Python versions available at:
# https://github.com/actions/python-versions/blob/HEAD/versions-manifest.json
include:
- python: "3.7"
oldest_dependencies: oldest_dependencies
Expand All @@ -85,10 +87,7 @@ jobs:
subdomain: subdomain
- python: "3.10"
ssl: ssl
# can't test 3.11.0-beta.4 until a greenlet release
# greenlet is a dependency of sqlalchemy on linux
# see https://github.com/gevent/gevent/issues/1867
# - python: "3.11.0-beta.4"
- python: "3.11.0-rc.1"
- python: "3.10"
main_dependencies: main_dependencies

Expand Down Expand Up @@ -136,9 +135,19 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python }}"

- name: Install Python dependencies
run: |
pip install --upgrade pip
if [[ "${{ matrix.python }}" == "3.11"* ]]; then
# greenlet is not actually required,
# but is an install dependency of sqlalchemy.
# It does not yet install on 3.11
# see: see https://github.com/gevent/gevent/issues/1867
pip install ./ci/mock-greenlet
fi
pip install --upgrade . -r dev-requirements.txt
if [ "${{ matrix.oldest_dependencies }}" != "" ]; then
Expand Down
3 changes: 3 additions & 0 deletions ci/mock-greenlet/greenlet.py
@@ -0,0 +1,3 @@
__version__ = "22.0.0.dev0"

raise ImportError("Don't actually have greenlet")
13 changes: 13 additions & 0 deletions ci/mock-greenlet/pyproject.toml
@@ -0,0 +1,13 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "greenlet"
description = 'Mock greenlet to allow install on 3.11'
requires-python = ">=3.7"
dynamic = ["version"]


[tool.hatch.version]
path = "greenlet.py"

0 comments on commit bb52351

Please sign in to comment.