From e41434744e6c1d09f2904d50f354767557976c70 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Jul 2026 21:58:44 +0000 Subject: [PATCH 1/2] Initial plan From c44d10b93ed72f087fcfc70d90e292c90ae3fac2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Jul 2026 22:00:50 +0000 Subject: [PATCH 2/2] Reorder pr-check.yml so specific pytest version installs after test-requirements --- .github/workflows/pr-check.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index c58844bbf110..846e461b5e46 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -172,18 +172,6 @@ jobs: with: python-version: ${{ matrix.python }} - - name: Install specific pytest version - if: matrix.pytest-version == 'pytest@pre-release' - run: | - python -m pip install --pre pytest - - - name: Install specific pytest version - if: matrix.pytest-version != 'pytest@pre-release' - run: | - python -m pip install "${{ matrix.pytest-version }}" - - - name: Install specific pytest version - run: python -m pytest --version - name: Install base Python requirements uses: brettcannon/pip-secure-install@92f400e3191171c1858cc0e0d9ac6320173fdb0c # v1.0.0 with: @@ -193,6 +181,19 @@ jobs: - name: Install test requirements run: python -m pip install --upgrade -r build/test-requirements.txt + # Install the specific pytest version AFTER test-requirements.txt so it is not + # overridden by the `pytest<8.1` pin (needed for pytest-black compatibility). + - name: Install specific pytest version (pre-release) + if: matrix.pytest-version == 'pytest@pre-release' + run: python -m pip install --upgrade --pre pytest + + - name: Install specific pytest version + if: matrix.pytest-version != 'pytest@pre-release' + run: python -m pip install --upgrade "${{ matrix.pytest-version }}" + + - name: Print pytest version + run: python -m pytest --version + - name: Run Python unit tests run: python python_files/tests/run_all.py