Skip to content

Commit d49764d

Browse files
committed
GitHub Actions: Fix failing PyPy tests
1 parent 62ac273 commit d49764d

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ jobs:
271271
strategy:
272272
fail-fast: false
273273
matrix:
274-
python-version: ["pypy-3.9", "pypy-3.10"]
274+
python-version: ["pypy-3.9", "pypy-3.10", "pypy-3.11"]
275275
steps:
276276
- name: Check out code from GitHub
277277
uses: actions/[email protected]
@@ -281,29 +281,7 @@ jobs:
281281
with:
282282
python-version: ${{ matrix.python-version }}
283283
check-latest: true
284-
- name: Generate partial Python venv restore key
285-
id: generate-python-key
286-
run: >-
287-
echo "key=venv-${{ env.CACHE_VERSION }}-${{
288-
hashFiles('pyproject.toml', 'requirements_test_min.txt')
289-
}}" >> $GITHUB_OUTPUT
290-
- name: Restore Python virtual environment
291-
id: cache-venv
292-
uses: actions/[email protected]
293-
with:
294-
path: venv
295-
key: >-
296-
${{ runner.os }}-${{ matrix.python-version }}-${{
297-
steps.generate-python-key.outputs.key }}
298-
- name: Create Python virtual environment
299-
if: steps.cache-venv.outputs.cache-hit != 'true'
300-
run: |
301-
python -m venv venv
302-
. venv/bin/activate
303-
python -m pip install -U pip setuptools wheel
304-
pip install -U -r requirements_test_min.txt
305-
- name: Run pytest
306-
run: |
307-
. venv/bin/activate
308-
pip list | grep 'astroid\|pylint'
309-
python -m pytest --durations=10 --benchmark-disable tests/
284+
- run: python -m pip install --upgrade pip
285+
- run: pip install --upgrade -r requirements_test_min.txt
286+
- run: pip list | grep 'astroid\|pylint'
287+
- run: pytest --durations=10 --benchmark-disable tests/

0 commit comments

Comments
 (0)