From b2383d44751bf85e58cfb9223bbf4e5961c09fa1 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Mon, 29 Jan 2024 14:10:29 +0000 Subject: [PATCH] [RELEASE-ONLY CHANGES] [Cherry-pick for 0.17] CI fix - Use pytest<8 in unittest jobs (#8240) --- .github/scripts/unittest.sh | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/unittest.sh b/.github/scripts/unittest.sh index 7f2b2100389..15cc79ccb91 100755 --- a/.github/scripts/unittest.sh +++ b/.github/scripts/unittest.sh @@ -8,7 +8,7 @@ set -euo pipefail eval "$($(which conda) shell.bash hook)" && conda deactivate && conda activate ci echo '::group::Install testing utilities' -pip install --progress-bar=off pytest pytest-mock pytest-cov expecttest +pip install --progress-bar=off "pytest<8" pytest-mock pytest-cov expecttest echo '::endgroup::' python test/smoke_test.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 932e801aed5..3c3f1d67231 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -164,7 +164,7 @@ jobs: echo '::endgroup::' echo '::group::Install testing utilities' - pip install --progress-bar=off pytest + pip install --progress-bar=off "pytest<8" echo '::endgroup::' echo '::group::Run extended unittests'