From d28e37c335ffd9404be30d71b9f7e8f3896e7cd0 Mon Sep 17 00:00:00 2001 From: KotlinIsland Date: Wed, 9 Nov 2022 23:17:04 +1000 Subject: [PATCH] Add 3.12-dev to CI --- .github/workflows/test.yml | 18 ++++++++++++++++++ test-requirements.txt | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9cc2d82ad9113..a02378cc01ab0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -137,3 +137,21 @@ jobs: run: tox -e ${{ matrix.toxenv }} --notest - name: Test run: tox -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }} + + python-nightly: + runs-on: ubuntu-latest + name: Test suite with Python nightly + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.12-dev' + - name: Install tox + run: pip install --upgrade 'setuptools!=50' tox==3.24.5 + - name: Setup tox environment + run: tox -e py --notest + - name: Test + run: tox -e py --skip-pkg-install -- "-n 2" + continue-on-error: true + - name: Mark as a success + run: exit 0 diff --git a/test-requirements.txt b/test-requirements.txt index 6f0c1b065ad45..8ddf46ca3369d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7,7 +7,7 @@ flake8==5.0.4 # must match version in .pre-commit-config.yaml flake8-bugbear==22.9.23 # must match version in .pre-commit-config.yaml flake8-noqa==1.2.9 # must match version in .pre-commit-config.yaml isort[colors]==5.10.1 # must match version in .pre-commit-config.yaml -lxml>=4.9.1; python_version<'3.11' or sys_platform!='win32' +lxml>=4.9.1; python_version<'3.11' or sys_platform!='win32' and python_version!=3.12 psutil>=4.0 # pytest 6.2.3 does not support Python 3.10 pytest>=6.2.4