File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff 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 }})
You can’t perform that action at this time.
0 commit comments