From 7d9fa2bcf7c46e47fd2e0b95e268f0f85ac9d09d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 24 Aug 2023 20:21:11 +0200 Subject: [PATCH] DEV: setup-python for Python 3.12 allow-prerelease: true in Github Actions (#2109) Use the current version of Python 3.12 whether it is a pre-release or a production release as discussed at: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#allow-pre-releases This should run tests on [Python 3.12 rc1](https://www.python.org/download/pre-releases/) instead of hard coding beta 4. --- .github/workflows/github-ci.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml index a5bb51e5b..fd9ed9240 100644 --- a/.github/workflows/github-ci.yaml +++ b/.github/workflows/github-ci.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0-beta.4"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] use-crypto-lib: ["pycryptodome"] include: - python-version: "3.9" @@ -48,9 +48,10 @@ jobs: cache-dependency-path: '**/requirements/ci.txt' - name: Setup Python (3.11+) uses: actions/setup-python@v4 - if: matrix.python-version == '3.11' || matrix.python-version == '3.12.0-beta.4' + if: matrix.python-version == '3.11' || matrix.python-version == '3.12' with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' cache-dependency-path: '**/requirements/ci-3.11.txt' - name: Upgrade pip @@ -63,7 +64,7 @@ jobs: - name: Install requirements (Python 3.11+) run: | pip install -r requirements/ci-3.11.txt - if: matrix.python-version == '3.11' || matrix.python-version == '3.12.0-beta.4' + if: matrix.python-version == '3.11' || matrix.python-version == '3.12' - name: Remove pycryptodome run: | pip uninstall pycryptodome -y