Skip to content

Commit 238c2c7

Browse files
committed
Fix cross-platform compatibility issues in CI
- Replace rm -f with cross-platform Python command for Windows compatibility - Use poetry install --no-cache without lock file to resolve platform-specific dependencies - Eliminates PowerShell parameter ambiguity error on Windows - Allows Poetry to dynamically resolve PyTorch wheels for each architecture
1 parent 998109d commit 238c2c7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/cross-platform-test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@ jobs:
116116
117117
- name: Install dependencies with Poetry
118118
run: |
119-
# Remove existing lock file and regenerate for this platform
120-
rm -f poetry.lock
121-
poetry lock --no-cache
122-
poetry install --only=main
119+
# Remove lock file using cross-platform Python command and install without lock file constraints
120+
python -c "import os; os.remove('poetry.lock') if os.path.exists('poetry.lock') else None"
121+
poetry install --only=main --no-cache
123122
124123
- name: Verify environment markers worked correctly
125124
run: |

0 commit comments

Comments
 (0)