Skip to content

Commit 8f6247c

Browse files
committed
Better test of built wheel
1 parent e7ea8f1 commit 8f6247c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build-binaries.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ 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+
- run: |
59+
python -m venv .test-venv
60+
./.test-venv/bin/pip install --no-index --find-links=./dist temporalio
61+
./.test-venv/bin/pip install pytest
62+
./.test-venv/bin/python -m pytest -k tests/test_activity_hello
63+
rm -r .test-venv
5964
6065
# Upload dist
6166
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)