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
11 changes: 9 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ jobs:
runs-on: macos-15
steps:
- name: Check out repository
uses: actions/checkout@v6
uses: actions/checkout@v7.0.1
with:
persist-credentials: false

# setup-uv stopped publishing major tags at v8, deliberately: pinning to
# @v9 would be the supply-chain hole they closed. prune-cache is set
# explicitly because v9 flipped its default to false, which grows the
# Actions cache rather than trimming it.
- name: Install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v9.0.0
with:
python-version: "3.13"
prune-cache: true

- name: Create test scratch directory
run: |
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ jobs:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v6
uses: actions/checkout@v7.0.1
with:
persist-credentials: false

# setup-uv stopped publishing major tags at v8, deliberately: pinning to
# @v9 would be the supply-chain hole they closed. prune-cache is set
# explicitly because v9 flipped its default to false, which grows the
# Actions cache rather than trimming it.
- name: Install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v9.0.0
with:
python-version: "3.13"
prune-cache: true

- name: Build package
run: |
Expand All @@ -40,7 +47,7 @@ jobs:
"from mlx_spatial.spatialkit import backend_info; info = backend_info(); assert info['native']; print(info)"

- name: Upload package artifacts
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@v7.0.1
with:
name: mlx-spatial-dist
path: dist/*
Expand All @@ -58,10 +65,13 @@ jobs:
id-token: write
steps:
- name: Download package artifacts
uses: actions/download-artifact@v8
uses: actions/download-artifact@v8.0.1
with:
name: mlx-spatial-dist
path: dist

# PyPA suggests the floating release/v1 tag. This job is the one place in
# the repository that holds an OIDC id-token, so it pins an exact release
# instead: a compromised upstream tag here could publish as us.
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.14.2