Skip to contentSkip to conversation

CI, docs: Install test/py/requirements.txt as well

PATCH New Tom Rini 1 participant 1 message May 12, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 CI, docs: Install test/py/requirements.txt as well

As noted by Quentin, in CI we should be at least versioning the pytest that we install. To avoid problems later, go with the whole requirements file being used. Furthermore, our documentation building for readthedocs must also have pytest so install the requirements file there as well.

---
 .azure-pipelines.yml | 2 +-
 .gitlab-ci.yml       | 2 +-
 .readthedocs.yml     | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)
.azure-pipelines.yml +1 -1
index 9c136513bb9e..15520c4dafd5 100644
@@ -92,7 +92,7 @@ stages:
           set -e
           python3 -m venv /tmp/venvhtml
           . /tmp/venvhtml/bin/activate
-          pip install -r doc/sphinx/requirements.txt pytest
+          pip install -r doc/sphinx/requirements.txt -r test/py/requirements.txt
           make htmldocs KDOC_WERROR=1
           make infodocs
 
.gitlab-ci.yml +1 -1
index 7aadd5d8b735..49f3c588cfcf 100644
@@ -164,7 +164,7 @@ docs:
   script:
     - python3 -m venv /tmp/venvhtml
     - . /tmp/venvhtml/bin/activate
-    - pip install -r doc/sphinx/requirements.txt pytest
+    - pip install -r doc/sphinx/requirements.txt -r test/py/requirements.txt
     - make htmldocs KDOC_WERROR=1
     - make infodocs
 
.readthedocs.yml +1 -0
index 16418f286dce..9b6d251b7387 100644
@@ -22,3 +22,4 @@ formats: []
 python:
   install:
     - requirements: doc/sphinx/requirements.txt
+    - requirements: test/py/requirements.txt
Signature · 1 line
2.43.0