Skip to content

Commit b34ba6f

Browse files
committed
ci: install specific version of virtualenv
1 parent 56c07f2 commit b34ba6f

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ jobs:
5454
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5555
with:
5656
python-version-file: '.python-version'
57+
- # Workaround (hopefully temporary) issue with Poetry and virtualenv:
58+
# - https://github.com/pypa/virtualenv/issues/2931
59+
# - https://github.com/python-poetry/poetry/issues/10490
60+
# - https://github.com/actions/setup-python/issues/1167
61+
run: pip install virtualenv==20.32
5762
- run: pipx install poetry~=2.0
5863
- run: poetry install
5964
- run: poetry run mypy .
@@ -69,6 +74,11 @@ jobs:
6974
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
7075
with:
7176
python-version-file: '.python-version'
77+
- # Workaround (hopefully temporary) issue with Poetry and virtualenv:
78+
# - https://github.com/pypa/virtualenv/issues/2931
79+
# - https://github.com/python-poetry/poetry/issues/10490
80+
# - https://github.com/actions/setup-python/issues/1167
81+
run: pip install virtualenv==20.32
7282
- run: pipx install poetry~=2.0
7383
- run: poetry install
7484
- run: poetry run pytest
@@ -84,6 +94,11 @@ jobs:
8494
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
8595
with:
8696
python-version-file: '.python-version'
97+
- # Workaround (hopefully temporary) issue with Poetry and virtualenv:
98+
# - https://github.com/pypa/virtualenv/issues/2931
99+
# - https://github.com/python-poetry/poetry/issues/10490
100+
# - https://github.com/actions/setup-python/issues/1167
101+
run: pip install virtualenv==20.32
87102
- run: pipx install poetry~=2.0
88103
- run: poetry install
89104
- run: poetry run scripts/validate_advisories.py

.github/workflows/generate.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2727
with:
2828
python-version-file: '.python-version'
29+
- # Workaround (hopefully temporary) issue with Poetry and virtualenv:
30+
# - https://github.com/pypa/virtualenv/issues/2931
31+
# - https://github.com/python-poetry/poetry/issues/10490
32+
# - https://github.com/actions/setup-python/issues/1167
33+
run: pip install virtualenv==20.32
2934
- run: pipx install poetry~=2.0
3035
- run: poetry install
3136
- run: poetry run scripts/download_sa_advisories.py

0 commit comments

Comments
 (0)