From 5a0eac5965c276e6f06d7823508555af9d8fb080 Mon Sep 17 00:00:00 2001 From: Yusuke Miyazaki Date: Sat, 28 Oct 2023 12:11:48 +0900 Subject: [PATCH] Add CPython 3.12 and PyPy 3.10 to test suites --- .github/workflows/packaging.yml | 2 +- .github/workflows/tests.yml | 10 +++++----- setup.cfg | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index bb7e4e3..701b10c 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.11] + python-version: [3.12] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36a68c2..bdb5289 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,10 @@ jobs: matrix: # https://help.github.com/articles/virtual-environments-for-github-actions platform: - - ubuntu-latest # ubuntu-20.04 - - macos-latest # macOS-11 + - ubuntu-latest # ubuntu-22.04 + - macos-latest # macOS-12 - windows-latest # windows-2022 - python-version: [3.7, 3.8, 3.9, '3.10', '3.11', 3.12-dev, pypy-3.7, pypy-3.8, pypy-3.9] + python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12, pypy-3.7, pypy-3.8, pypy-3.9, pypy-3.10] steps: - uses: actions/checkout@v3 @@ -40,12 +40,12 @@ jobs: - name: Test with tox run: tox - name: Upload coverage.xml - if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }} + if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} uses: actions/upload-artifact@v3 with: name: tox-gh-actions-coverage path: coverage.xml if-no-files-found: error - name: Upload coverage.xml to codecov - if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }} + if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} uses: codecov/codecov-action@v2 diff --git a/setup.cfg b/setup.cfg index 34d3114..0144d7c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy Topic :: Software Development :: Testing @@ -89,6 +90,7 @@ python = 3.9: py39 3.10: py310 3.11: py311, black, flake8, mypy + 3.12: py312 pypy-3: pypy3 [testenv]