From e2e314fca6f90d9601c3b7d30370d2ca21e09cfe Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 21 Aug 2023 16:18:29 -0400 Subject: [PATCH] fix: support python 3.12 (#794) --- .github/workflows/cicd.yml | 9 +++++---- pyproject.toml | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 053e899b..57eb1c6a 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -31,7 +31,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.8', '3.9', '3.10', '3.11-dev'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12-dev'] fail-fast: true steps: - uses: actions/checkout@v3.5.3 @@ -43,15 +43,16 @@ jobs: run: . script/bootstrap shell: bash - name: Run Tests - if: "!(matrix.python-version == '3.11-dev' && matrix.os == 'ubuntu-latest')" + if: | + !(matrix.python-version == '3.12-dev' && matrix.os == 'ubuntu-latest') shell: bash run: poetry run invoke test - name: Run Tests (with coverage) - if: matrix.python-version == '3.11-dev' && matrix.os == 'ubuntu-latest' + if: matrix.python-version == '3.12-dev' && matrix.os == 'ubuntu-latest' shell: bash run: poetry run invoke test --coverage - name: Upload Coverage - if: matrix.python-version == '3.11-dev' && matrix.os == 'ubuntu-latest' + if: matrix.python-version == '3.12-dev' && matrix.os == 'ubuntu-latest' env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} shell: bash diff --git a/pyproject.toml b/pyproject.toml index 5b98b857..085a1623 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Testing', 'Topic :: Utilities',