Unverified Commit 432283c0 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

CI fix - Use pytest<8 in unittest jobs (#8239)

parent e0fd033c
...@@ -8,7 +8,8 @@ set -euo pipefail ...@@ -8,7 +8,8 @@ set -euo pipefail
eval "$($(which conda) shell.bash hook)" && conda deactivate && conda activate ci eval "$($(which conda) shell.bash hook)" && conda deactivate && conda activate ci
echo '::group::Install testing utilities' echo '::group::Install testing utilities'
pip install --progress-bar=off pytest pytest-mock pytest-cov expecttest!=0.2.0 # TODO: remove the <8 constraint on pytest when https://github.com/pytorch/vision/issues/8238 is closed
pip install --progress-bar=off "pytest<8" pytest-mock pytest-cov expecttest!=0.2.0
echo '::endgroup::' echo '::endgroup::'
python test/smoke_test.py python test/smoke_test.py
......
...@@ -164,7 +164,8 @@ jobs: ...@@ -164,7 +164,8 @@ jobs:
echo '::endgroup::' echo '::endgroup::'
echo '::group::Install testing utilities' echo '::group::Install testing utilities'
pip install --progress-bar=off pytest # TODO: remove the <8 constraint on pytest when https://github.com/pytorch/vision/issues/8238 is closed
pip install --progress-bar=off "pytest<8"
echo '::endgroup::' echo '::endgroup::'
echo '::group::Run extended unittests' echo '::group::Run extended unittests'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment