From f2a149e173fd3907d79139dc4bb4c05bfccf7c2f Mon Sep 17 00:00:00 2001 From: vaultah <4944562+vaultah@users.noreply.github.com> Date: Mon, 23 Oct 2023 21:15:10 +0100 Subject: [PATCH] Builds for 3.12 --- .github/workflows/ci.yml | 66 ++++++++++++++++++++++++++++++ .github/workflows/release.yml | 16 ++++++++ .github/workflows/test-release.yml | 16 ++++++++ 3 files changed, 98 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9e94f9..040329e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -277,3 +277,69 @@ jobs: name: ${{ env.WHEEL_NAME }} - run: python -m pip install ${{ env.WHEEL_NAME }}[test] - run: python -m pytest --pyargs replicat.tests + + # 3.12 builds + build-312-windows: + needs: lint + uses: ./.github/workflows/build-windows.yml + with: + python-version: '3.12' + + build-312-linux: + needs: lint + uses: ./.github/workflows/build-linux.yml + with: + python-version: '3.12' + + build-312-macos: + needs: lint + uses: ./.github/workflows/build-macos.yml + with: + python-version: '3.12' + + # 3.12 tests + test-312-windows: + needs: build-312-windows + runs-on: windows-latest + steps: + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.12' + - run: echo "WHEEL_NAME=${{ needs.build-312-windows.outputs.wheel_name }}" >> $GITHUB_ENV + shell: bash + - uses: actions/download-artifact@v2 + with: + name: ${{ env.WHEEL_NAME }} + - run: python -m pip install ${{ env.WHEEL_NAME }}[test] + - run: python -m pytest --pyargs replicat.tests + + test-312-linux: + needs: build-312-linux + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.12' + - run: echo "WHEEL_NAME=${{ needs.build-312-linux.outputs.wheel_name }}" >> $GITHUB_ENV + - uses: actions/download-artifact@v2 + with: + name: ${{ env.WHEEL_NAME }} + - run: python -m pip install ${{ env.WHEEL_NAME }}[test] + - run: python -m pytest --pyargs replicat.tests + + test-312-macos: + needs: build-312-macos + runs-on: macos-latest + steps: + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.12' + - run: echo "WHEEL_NAME=${{ needs.build-312-macos.outputs.wheel_name }}" >> $GITHUB_ENV + - uses: actions/download-artifact@v2 + with: + name: ${{ env.WHEEL_NAME }} + - run: python -m pip install ${{ env.WHEEL_NAME }}[test] + - run: python -m pytest --pyargs replicat.tests diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd410d8..ae28a2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,22 @@ jobs: with: python-version: '3.11' + # 3.12 builds + build-312-windows: + uses: ./.github/workflows/build-windows.yml + with: + python-version: '3.12' + + build-312-linux: + uses: ./.github/workflows/build-linux.yml + with: + python-version: '3.12' + + build-312-macos: + uses: ./.github/workflows/build-macos.yml + with: + python-version: '3.12' + build-sdist: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 779d0de..4f31570 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -67,6 +67,22 @@ jobs: with: python-version: '3.11' + # 3.12 builds + build-312-windows: + uses: ./.github/workflows/build-windows.yml + with: + python-version: '3.12' + + build-312-linux: + uses: ./.github/workflows/build-linux.yml + with: + python-version: '3.12' + + build-312-macos: + uses: ./.github/workflows/build-macos.yml + with: + python-version: '3.12' + build-sdist: runs-on: ubuntu-latest steps: