Skip to content

Commit 64990cf

Browse files
committed
check of the build wheel can be correctly installed
1 parent 85425a5 commit 64990cf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/pypi-whl.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ jobs:
5757
working-directory: tools/pypi-whl
5858
- name: Print out the content of the dist folder after building the wheel
5959
run: ls -l tools/pypi-whl/dist/
60+
- name: Validate the wheel installs the BIDS validator correctly
61+
run: |
62+
python -m venv .venv
63+
if [[ "$RUNNER_OS" == "Windows" ]]; then
64+
ACTIVATE_PATH=.venv/Scripts/activate
65+
BIDS_VALIDATOR_BINARY_NAME=bids-validator.exe
66+
VENV_BIN_DIR=.venv/Scripts
67+
else
68+
ACTIVATE_PATH=.venv/bin/activate
69+
BIDS_VALIDATOR_BINARY_NAME=bids-validator
70+
VENV_BIN_DIR=.venv/bin
71+
fi
72+
source "$ACTIVATE_PATH"
73+
pip install tools/pypi-whl/dist/*.whl
74+
bids-validator --version
75+
ls -lh "$VENV_BIN_DIR"
76+
diff "$VENV_BIN_DIR"/"$BIDS_VALIDATOR_BINARY_NAME" tools/pypi-whl/dist/"$BIDS_VALIDATOR_BINARY_NAME"
77+
deactivate
78+
shell: bash
6079
- name: Check if distribution's description will render correctly on PyPI
6180
run: twine check tools/pypi-whl/dist/*.whl
6281
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)