Skip to content

Commit a1dce75

Browse files
committed
chore: update Python tests workflow for improved compatibility and performance
1 parent 1ad0e02 commit a1dce75

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/python-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,19 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343
- name: Install poetry
44-
run: pipx install --python python3.10 poetry
44+
run: pipx install poetry
4545
- name: Set up Python ${{ matrix.python-version }}
4646
uses: actions/setup-python@v5
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
cache: 'poetry'
50+
- name: Install virtualenv with specific version
51+
# This is only a temporary fix to ensure compatibility with Poetry & virtualenv
52+
# Relevant issues:
53+
# - https://github.com/actions/setup-python/issues/1167
54+
# - https://github.com/pypa/virtualenv/issues/2931
55+
# - https://github.com/python-poetry/poetry/issues/10490
56+
run: pip install virtualenv==20.32
5057

5158
# Dependency and building tests
5259
- name: Install main dependencies

0 commit comments

Comments
 (0)