diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index fdc845c5..4170295c 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -54,6 +54,7 @@ jobs: - name: Install dependencies run: | + pip install "pytest<8" pip install .[docs,tests] pip install black=="23.9.1" ruff=="0.0.292" mypy=="1.6.0" pip uninstall --yes scikit-learn diff --git a/.github/workflows/deploy-model-card-creator.yml b/.github/workflows/deploy-model-card-creator.yml index 9758972b..258269e8 100644 --- a/.github/workflows/deploy-model-card-creator.yml +++ b/.github/workflows/deploy-model-card-creator.yml @@ -25,6 +25,7 @@ jobs: - name: Install dependencies run: | + pip install "pytest<8" pip install -e .[docs,tests] python --version pip --version diff --git a/skops/_min_dependencies.py b/skops/_min_dependencies.py index 0a8290a8..2a9856bd 100644 --- a/skops/_min_dependencies.py +++ b/skops/_min_dependencies.py @@ -1,7 +1,8 @@ """All minimum dependencies for scikit-learn.""" import argparse -PYTEST_MIN_VERSION = "5.0.1" +# TODO: flaky fails on pytest=8 +PYTEST_MIN_VERSION = "7" # 'build' and 'install' is included to have structured metadata for CI. # It will NOT be included in setup's extras_require