Skip to content

Commit d62be28

Browse files
authored
Run against 3.12-dev in CI (#14050)
1 parent 7eef68a commit d62be28

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,21 @@ jobs:
137137
run: tox -e ${{ matrix.toxenv }} --notest
138138
- name: Test
139139
run: tox -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
140+
141+
python-nightly:
142+
runs-on: ubuntu-latest
143+
name: Test suite with Python nightly
144+
steps:
145+
- uses: actions/checkout@v3
146+
- uses: actions/setup-python@v4
147+
with:
148+
python-version: '3.12-dev'
149+
- name: Install tox
150+
run: pip install --upgrade 'setuptools!=50' tox==3.24.5
151+
- name: Setup tox environment
152+
run: tox -e py --notest
153+
- name: Test
154+
run: tox -e py --skip-pkg-install -- "-n 2"
155+
continue-on-error: true
156+
- name: Mark as a success
157+
run: exit 0

mypyc/test/test_run.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) ->
312312
stderr=subprocess.STDOUT,
313313
env=env,
314314
)
315+
if sys.version_info >= (3, 12):
316+
# TODO: testDecorators1 hangs on 3.12, remove this once fixed
317+
proc.wait(timeout=30)
315318
output = proc.communicate()[0].decode("utf8")
316319
outlines = output.splitlines()
317320

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ flake8==5.0.4 # must match version in .pre-commit-config.yaml
77
flake8-bugbear==22.9.23 # must match version in .pre-commit-config.yaml
88
flake8-noqa==1.2.9 # must match version in .pre-commit-config.yaml
99
isort[colors]==5.10.1 # must match version in .pre-commit-config.yaml
10-
lxml>=4.9.1; python_version<'3.11' or sys_platform!='win32'
10+
lxml>=4.9.1; (python_version<'3.11' or sys_platform!='win32') and python_version<'3.12'
1111
psutil>=4.0
1212
# pytest 6.2.3 does not support Python 3.10
1313
pytest>=6.2.4

0 commit comments

Comments
 (0)