Skip to content

Commit 4463434

Browse files
authored
👷 [github] Pin pip in virtual environments (#707)
* 👷 [github] Set `VIRTUALENV_PIP` to pin pip in virtual environments * 👷 [github] Append to GITHUB_ENV in Python This is horrible, but apparently Powershell's quote handling is too broken to do this portably in the default shell. The previous version just ate the double quotes.
1 parent 1b88bda commit 4463434

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ jobs:
4747
pip install --constraint=.github/workflows/constraints.txt pip
4848
pip --version
4949
50+
- name: Upgrade pip in virtual environments
51+
shell: python
52+
run: |
53+
import os
54+
import pip
55+
56+
with open(os.environ["GITHUB_ENV"], mode="a") as io:
57+
print(f"VIRTUALENV_PIP={pip.__version__}", file=io)
58+
5059
- name: Install Poetry
5160
run: |
5261
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry

0 commit comments

Comments
 (0)