Skip to content

Commit e3ffc3e

Browse files
committed
add script
1 parent 1a3e9bb commit e3ffc3e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
# Need to grab the SDK version for the wheel name
3030
- name: Extract SDK Version
3131
run: echo "SDK_VERSION=$(python -c 'import version; print(version.SDK_VERSION)')" >> $GITHUB_ENV
32+
33+
- name: Make test script executable
34+
run: chmod +x run_test.sh
3235

3336
- name: Build wheels
3437
env:
@@ -37,7 +40,7 @@ jobs:
3740
CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux_2_34_aarch64"
3841
CIBW_ARCHS: "native"
3942
CIBW_BEFORE_TEST: "pip install pydantic cryptography"
40-
CIBW_TEST_COMMAND: python3 ${{github.workspace}}/example/example.py
43+
CIBW_TEST_COMMAND: ${{github.workspace}}/run_test.sh
4144
MACOSX_DEPLOYMENT_TARGET: 11.0 # Required for building on macOS
4245
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.TEST_SERVICE_ACCOUNT_TOKEN }}
4346
continue-on-error: true

run_example.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Running example.py"
5+
python example/example.py

0 commit comments

Comments
 (0)