Skip to content

Commit 09e4446

Browse files
committed
test(python): add pip verification and test Python 3.14.2 on Windows
- Add "Verify pip shim works" step to test pip --version via shim - Add "Verify pip module works" step to test python -m pip --version - Update Windows matrix to use Python 3.14.2 (reported in dtvem.cli#201) - Update summary table to include pip verification results This ensures the pip installation fix in dtvem.cli is properly tested, particularly on Windows where pip.exe had issues with embedded paths. Related: CodingWithCalvin/dtvem.cli#201, CodingWithCalvin/dtvem.cli#207
1 parent 7a9b8c0 commit 09e4446

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/dtvem-integration-test-python.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
- os: windows-latest
4040
platform: windows
4141
ext: ".exe"
42-
version1: "3.11.9"
42+
# Use 3.14.2 to test the pip fix (issue #201 - pip failed on this version)
43+
version1: "3.14.2"
4344
version2: "3.12.5"
4445
env:
4546
# Run tests from a directory outside the repo to avoid picking up .dtvem/runtimes.json
@@ -175,6 +176,34 @@ jobs:
175176
fi
176177
shell: bash
177178

179+
- name: "Verify pip shim works (pip --version)"
180+
run: |
181+
cd "$TEST_WORKSPACE"
182+
echo "Testing pip via shim..."
183+
PIP_VERSION=$(pip --version)
184+
echo "pip version from shim: $PIP_VERSION"
185+
# Verify pip reports the correct Python version
186+
if [[ "$PIP_VERSION" != *"${{ matrix.version1 }}"* ]]; then
187+
echo "ERROR: pip reports wrong Python version. Expected ${{ matrix.version1 }} in output"
188+
echo "Got: $PIP_VERSION"
189+
exit 1
190+
fi
191+
echo "✓ pip shim works correctly"
192+
shell: bash
193+
194+
- name: "Verify pip module works (python -m pip)"
195+
run: |
196+
cd "$TEST_WORKSPACE"
197+
echo "Testing pip via module..."
198+
PIP_MODULE_VERSION=$(python -m pip --version)
199+
echo "pip module version: $PIP_MODULE_VERSION"
200+
if [[ "$PIP_MODULE_VERSION" != *"${{ matrix.version1 }}"* ]]; then
201+
echo "ERROR: pip module reports wrong Python version"
202+
exit 1
203+
fi
204+
echo "✓ pip module works correctly"
205+
shell: bash
206+
178207
- name: "Switch global version to ${{ matrix.version2 }}"
179208
run: |
180209
cd "$TEST_WORKSPACE"
@@ -289,6 +318,8 @@ jobs:
289318
echo "| global | ✅ |" >> $GITHUB_STEP_SUMMARY
290319
echo "| current | ✅ |" >> $GITHUB_STEP_SUMMARY
291320
echo "| shim execution | ✅ |" >> $GITHUB_STEP_SUMMARY
321+
echo "| pip shim | ✅ |" >> $GITHUB_STEP_SUMMARY
322+
echo "| pip module | ✅ |" >> $GITHUB_STEP_SUMMARY
292323
echo "| local override | ✅ |" >> $GITHUB_STEP_SUMMARY
293324
echo "| which | ✅ |" >> $GITHUB_STEP_SUMMARY
294325
echo "| where | ✅ |" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)