Skip to content

Commit

Permalink
Builds for Python 3.12 (#51)
Browse files Browse the repository at this point in the history
Builds for 3.12
  • Loading branch information
vaultah authored Oct 23, 2023
1 parent 2fdb6d7 commit 4a46cdd
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 9 deletions.
68 changes: 59 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,18 +278,68 @@ jobs:
- run: python -m pip install ${{ env.WHEEL_NAME }}[test]
- run: python -m pytest --pyargs replicat.tests

test-312:
# 3.12 builds
build-312-windows:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
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: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12.0-alpha - 3.12.0'
- run: python -m pip install .[test]
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
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4a46cdd

Please sign in to comment.