Skip to content

Commit 94fe548

Browse files
committed
add test job for source distro
1 parent a16e535 commit 94fe548

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,22 @@ jobs:
4545
build-sdist:
4646
name: Build source distribution for Python SDK
4747
runs-on: ubuntu-latest
48-
needs: build_wheels
4948
steps:
5049
# Need to grab the SDK version for the wheel name
5150
- name: Extract SDK Version
5251
run: echo "SDK_VERSION=$(python -c 'import version; print(version.SDK_VERSION)')" >> $GITHUB_ENV
5352

5453
- uses: actions/checkout@v4
54+
5555
- name: Build source distribution
5656
run: python -m build --sdist
57+
58+
- name: Test Source Distribution
59+
env:
60+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.TEST_SERVICE_ACCOUNT_TOKEN }}
61+
run: |
62+
python -m pip install dist/*.tar.gz
63+
python -m pytest src/onepassword/test_client.py
5764
5865
- uses: actions/upload-artifact@v4
5966
with:

0 commit comments

Comments
 (0)