Skip to content

Commit 6c8b335

Browse files
check failure fix
1 parent 3c55796 commit 6c8b335

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/e2e-cache-freethreaded.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,19 @@ jobs:
169169
cache: 'pipenv'
170170
cache-dependency-path: '**/pipenv-requirements.txt'
171171
- name: Install pipenv
172-
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
173-
- name: Install dependencies
174-
run: pipenv install requests
172+
run: python -m pip install --upgrade pip pipenv
173+
- name: Install dependencies on Linux/macOS
174+
if: runner.os != 'Windows'
175+
run: |
176+
export PIPENV_PYTHON=$(which python)
177+
pipenv install requests
178+
- name: Install dependencies on Windows
179+
if: runner.os == 'Windows'
180+
run: |
181+
# Remove existing virtualenv if any
182+
python -m pipenv --rm || echo "No existing env"
183+
# Create fresh env using current Python
184+
python -m pipenv install --python $(python -c "import sys; print(sys.executable)") requests
175185
176186
python-pip-dependencies-caching-with-pip-version:
177187
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})

0 commit comments

Comments
 (0)