Skip to content

Commit 8bf9ccb

Browse files
committed
test on test_client instead of example.py
1 parent 98f4832 commit 8bf9ccb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/wheels.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ jobs:
3636
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux_2_34_x86_64"
3737
CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux_2_34_aarch64"
3838
CIBW_ARCHS: "native"
39-
CIBW_BEFORE_TEST: "pip install pydantic cryptography"
40-
CIBW_TEST_COMMAND: "python {project}/example/example.py"
39+
CIBW_BEFORE_TEST: "pip install pydantic cryptography pytest pytest-asyncio"
40+
CIBW_TEST_COMMAND: "python -m pytest {project}/src/onepassword/test_client.py"
4141
MACOSX_DEPLOYMENT_TARGET: 11.0 # Required for building on macOS
42-
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.EXAMPLE_TESTS_OP_SERVICE_ACCOUNT_TOKEN }}
43-
OP_VAULT_ID: ${{ secrets.EXAMPLE_TESTS_OP_VAULT_ID }}
44-
CIBW_ENVIRONMENT_PASS_LINUX: OP_SERVICE_ACCOUNT_TOKEN, OP_VAULT_ID # to pass in the SA token, for some reason linux doesn't read the env variables
42+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.TEST_SERVICE_ACCOUNT_TOKEN }}
43+
CIBW_ENVIRONMENT_PASS_LINUX: OP_SERVICE_ACCOUNT_TOKEN # to pass in the SA token, for some reason linux doesn't read the env variables
4544

4645
uses: pypa/[email protected]
4746

0 commit comments

Comments
 (0)