Skip to content

Commit 0f8fa3a

Browse files
committed
fix: refine wheel and sdist installation steps for OS-specific handling
1 parent 06065a9 commit 0f8fa3a

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/python-tests.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,25 @@ jobs:
5555
poetry run python scripts/check_dependencies.py
5656
- name: Build sdist and wheel
5757
run: poetry build
58-
- name: Test wheel installation
58+
- name: Test wheel installation on Windows
59+
if: startsWith(matrix.os, 'windows')
5960
run: |
60-
if [ "$RUNNER_OS" = "Windows" ]; then
61-
for f in dist/*.whl; do pip install "$f"; done
62-
else
63-
pip install dist/*.whl
64-
fi
61+
for f in dist/*.whl; do pip install "$f"; done
6562
pip uninstall -y memoryos
66-
- name: Test sdist installation
63+
- name: Test wheel installation on Linux / Mac
64+
if: ${{ !startsWith(matrix.os, 'windows') }}
6765
run: |
68-
if [ "$RUNNER_OS" = "Windows" ]; then
69-
for f in dist/*.tar.gz; do pip install "$f"; done
70-
else
71-
pip install dist/*.tar.gz
72-
fi
66+
pip install dist/*.whl
67+
pip uninstall -y memoryos
68+
- name: Test sdist installation on Windows
69+
if: startsWith(matrix.os, 'windows')
70+
run: |
71+
for f in dist/*.tar.gz; do pip install "$f"; done
72+
pip uninstall -y memoryos
73+
- name: Test sdist installation on Linux / Mac
74+
if: ${{ !startsWith(matrix.os, 'windows') }}
75+
run: |
76+
pip install dist/*.tar.gz
7377
pip uninstall -y memoryos
7478
7579
- name: Install all dependencies

0 commit comments

Comments
 (0)