From 27b19540e93cdb49a5010f589403ce9ff6843f3c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 18 Mar 2025 15:26:41 +0100 Subject: [PATCH] GitHub Actions: run tests on PyPy3.11 We are having trouble installing pylint v3.3.5 on PyPy3.11 on GitHub Actions. Also, `pip install --help` shows six different `--u*` options so when writing commands that others will read, explicitly use the self-documenting `--upgrade` instead of `-U`. * --user * --upgrade * --upgrade-strategy * --use-pep517 * --use-feature * --use-deprecated --- .github/workflows/tests.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 84041820a3..a037f41f4a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -31,7 +31,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.9, "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.11"] outputs: python-key: ${{ steps.generate-python-key.outputs.key }} steps: @@ -63,8 +63,8 @@ jobs: run: | python -m venv venv . venv/bin/activate - python -m pip install -U pip setuptools wheel - pip install -U -r requirements_test.txt + python -m pip install --upgrade pip setuptools wheel + pip install --upgrade -r requirements_test.txt - name: Run pytest run: | . venv/bin/activate @@ -177,7 +177,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.9, "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.11"] steps: - name: Set temp directory run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV @@ -210,8 +210,8 @@ jobs: run: | python -m venv venv . venv\\Scripts\\activate - python -m pip install -U pip setuptools wheel - pip install -U -r requirements_test_min.txt + python -m pip install --upgrade pip setuptools wheel + pip install --upgrade -r requirements_test_min.txt - name: Run pytest run: | . venv\\Scripts\\activate @@ -256,8 +256,8 @@ jobs: run: | python -m venv venv . venv/bin/activate - python -m pip install -U pip setuptools wheel - pip install -U -r requirements_test_min.txt + python -m pip install --upgrade pip setuptools wheel + pip install --upgrade -r requirements_test_min.txt - name: Run pytest run: | . venv/bin/activate @@ -300,8 +300,8 @@ jobs: run: | python -m venv venv . venv/bin/activate - python -m pip install -U pip setuptools wheel - pip install -U -r requirements_test_min.txt + python -m pip install --upgrade pip setuptools wheel + pip install --upgrade -r requirements_test_min.txt - name: Run pytest run: | . venv/bin/activate