7272 sleep_seconds=10
7373 for i in $(seq 1 $max_attempts); do
7474 echo "Attempt $i: installing paint-csp-test==$VERSION"
75- pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --pre "paint-csp-test[dev]==$VERSION" && break
75+ python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --pre "paint-csp-test[dev]==$VERSION" && break
7676 echo "Not ready yet, retrying in $sleep_seconds seconds..."
7777 sleep $sleep_seconds
7878 done
@@ -87,10 +87,10 @@ jobs:
8787 do {
8888 $i++
8989 Write-Host "Attempt ${i}: installing paint-csp-test==${env:VERSION}"
90- pip install --index-url https://test.pypi.org/simple/ `
91- --extra-index-url https://pypi.org/simple `
92- --pre `
93- "paint-csp-test[dev]==$env:VERSION"
90+ python -m pip install --index-url https://test.pypi.org/simple/ `
91+ --extra-index-url https://pypi.org/simple `
92+ --pre `
93+ "paint-csp-test[dev]==$env:VERSION"
9494 if ($LASTEXITCODE -eq 0) {
9595 Write-Host "Install succeeded"
9696 break
@@ -111,4 +111,16 @@ jobs:
111111 - name : Run tests with coverage
112112 run : |
113113 python --version
114+ python -c "import shutil, os, sys;
115+ print(f'Looking for local paint in {os.getcwd()}');
116+ if os.path.exists('paint'):
117+ shutil.rmtree('paint', ignore_errors=False)
118+ print('Deleted local paint folder.')
119+ else:
120+ print('Local paint folder not found (unexpected).')
121+
122+ # Double check it is dead
123+ if os.path.exists('paint'):
124+ sys.exit('FATAL: Failed to delete paint folder. Tests will be invalid.')
125+ "
114126 pytest --cov=paint
0 commit comments