Skip to content

Commit

Permalink
Find wheel on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gemenerik committed Nov 21, 2024
1 parent bdffcc8 commit 5d0ccc7
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,22 @@ jobs:
- name: Build wheel
run: python3 -m build --wheel

- name: Install wheel
run: pip install ./dist/*.whl
- name: Install the built wheel
run: |
# Find the built wheel
WHEEL_FILE=$(ls dist/*.whl | head -n 1)
echo "Installing wheel: $WHEEL_FILE"
pip install "$WHEEL_FILE"
shell: bash
if: runner.os != 'Windows'

- name: Install the built wheel (Windows)
run: |
for /f %%i in ('dir /b dist\*.whl') do set WHEEL_FILE=dist\%%i
echo Installing wheel: %WHEEL_FILE%
pip install %WHEEL_FILE%
shell: cmd
if: runner.os == 'Windows'

- name: Test
run: python3 -m unittest discover test/
Expand Down

0 comments on commit 5d0ccc7

Please sign in to comment.