Skip to content

Commit 7d097a4

Browse files
authored
ci: Add package install smoke test (#595)
1 parent 987b9e4 commit 7d097a4

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Package Install
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
install-smoke-test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Install uv
25+
run: |
26+
curl -LsSf https://astral.sh/uv/install.sh | sh
27+
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
28+
29+
- name: Build wheel
30+
run: uv build --wheel --out-dir dist
31+
32+
- name: Smoke test uv add + sync for backend extra
33+
run: |
34+
wheel_path="$(python - <<'PY'
35+
from pathlib import Path
36+
37+
print(next(Path("dist").glob("openpipe_art-*.whl")).resolve())
38+
PY
39+
)"
40+
41+
project_dir="$(mktemp -d)"
42+
cd "$project_dir"
43+
uv init --name art-install-smoke --python 3.11 --bare
44+
uv add "openpipe-art[backend] @ file://${wheel_path}"
45+
uv sync

0 commit comments

Comments
 (0)