Skip to content

Commit

Permalink
πŸ‘· [github] Pin pip in virtual environments (#693)
Browse files Browse the repository at this point in the history
* πŸ‘· [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.

Retrocookie-Original-Commit: cjolowicz/cookiecutter-hypermodern-python-instance@4463434
  • Loading branch information
cjolowicz authored May 16, 2022
1 parent c2edfb7 commit 82f60ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ jobs:
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Upgrade pip in virtual environments
shell: python
run: |
import os
import pip
with open(os.environ["GITHUB_ENV"], mode="a") as io:
print(f"VIRTUALENV_PIP={pip.__version__}", file=io)
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
Expand Down

0 comments on commit 82f60ec

Please sign in to comment.