Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion test_python.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"