diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4fcb76f..9ac6602 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -26,12 +26,13 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-14, windows-latest] + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Run composite test suite uses: ./.github/actions/run-rust-python-tests with: - python-version: "3.11" + python-version: ${{ matrix.python-version }} rust-toolchain: stable linux: @@ -66,6 +67,7 @@ jobs: sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} manylinux: auto - name: Upload wheels + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v4 with: name: wheels-linux-${{ matrix.platform.target }} @@ -101,6 +103,7 @@ jobs: sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} manylinux: musllinux_1_2 - name: Upload wheels + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v4 with: name: wheels-musllinux-${{ matrix.platform.target }} @@ -129,6 +132,7 @@ jobs: args: --release --out dist --find-interpreter sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} - name: Upload wheels + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v4 with: name: wheels-windows-${{ matrix.platform.target }} @@ -140,10 +144,10 @@ jobs: strategy: matrix: platform: - - runner: macos-13 - target: x86_64 - runner: macos-14 target: aarch64 + - runner: macos-15 + target: aarch64 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -156,9 +160,10 @@ jobs: args: --release --out dist --find-interpreter sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} - name: Upload wheels + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v4 with: - name: wheels-macos-${{ matrix.platform.target }} + name: wheels-macos-${{ matrix.platform.runner }}-${{ matrix.platform.target }} path: dist sdist: @@ -172,6 +177,7 @@ jobs: command: sdist args: --out dist - name: Upload sdist + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v4 with: name: wheels-sdist diff --git a/test_python.sh b/test_python.sh index 51176a7..c3c9df8 100755 --- a/test_python.sh +++ b/test_python.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash set -e source .venv/bin/activate -maturin develop --release +rm -f python/openai_harmony/openai_harmony.cpython-*.so +maturin develop --release pytest "$@"