Skip to content

Commit 5b02765

Browse files
committed
Better test of built wheel
1 parent e7ea8f1 commit 5b02765

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-binaries.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@ jobs:
5454
# Build the wheel
5555
- run: uv run cibuildwheel --output-dir dist
5656

57-
# Run a test
58-
- run: uv run pytest -k test_activity_hello
57+
# Install the wheel in a new venv and run a test
58+
- name: Test wheel
59+
run: |
60+
python -m venv .test-venv
61+
./.test-venv/bin/pip install --no-index --find-links=./dist temporalio
62+
./.test-venv/bin/pip install pytest
63+
./.test-venv/bin/python -m pytest -k tests/test_activity_hello
64+
rm -r .test-venv
5965
6066
# Upload dist
6167
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)