Skip to content

Commit 9d63fa5

Browse files
authored
Run Python 3.11 tests in CI (#12833)
Co-authored-by: hauntsaninja <>
1 parent f19a711 commit 9d63fa5

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

.github/workflows/test.yml

+17-20
Original file line numberDiff line numberDiff line change
@@ -119,23 +119,20 @@ jobs:
119119
- name: Test
120120
run: tox -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
121121

122-
# TODO: re-enable when `typed-ast` will be fixed for `python==3.11`
123-
# python-nightly:
124-
# runs-on: ubuntu-latest
125-
# name: Test suite with Python nightly
126-
# steps:
127-
# - uses: actions/checkout@v2
128-
# - uses: actions/setup-python@v2
129-
# with:
130-
# python-version: '3.11-dev'
131-
# - name: Install tox
132-
# run: |
133-
# pip install -U pip==21.2.3 setuptools
134-
# pip install --upgrade 'setuptools!=50' virtualenv==20.4.7 tox==3.20.1
135-
# - name: Setup tox environment
136-
# run: tox -e py --notest
137-
# - name: Test
138-
# run: tox -e py --skip-pkg-install -- "-n 2"
139-
# continue-on-error: true
140-
# - name: Mark as a success
141-
# run: exit 0
122+
python-nightly:
123+
runs-on: ubuntu-latest
124+
name: Test suite with Python nightly
125+
steps:
126+
- uses: actions/checkout@v2
127+
- uses: actions/setup-python@v2
128+
with:
129+
python-version: '3.11-dev'
130+
- name: Install tox
131+
run: pip install --upgrade 'setuptools!=50' 'virtualenv>=20.6.0' tox==3.24.5
132+
- name: Setup tox environment
133+
run: tox -e py --notest
134+
- name: Test
135+
run: tox -e py --skip-pkg-install -- "-n 2"
136+
continue-on-error: true
137+
- name: Mark as a success
138+
run: exit 0

test-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pytest-xdist>=1.34.0
1212
pytest-forked>=1.3.0,<2.0.0
1313
pytest-cov>=2.10.0,<3.0.0
1414
py>=1.5.2
15-
typed_ast>=1.4.0,<2; python_version>='3.8'
15+
typed_ast>=1.5.4,<2; python_version>='3.8'
1616
virtualenv>=20.6.0
1717
setuptools!=50
1818
importlib-metadata>=4.6.1,<5.0.0

0 commit comments

Comments
 (0)