commit:     9a41acc7ee5d39c390d9a09421ad2671acee0be8
Author:     Oskari Pirhonen <xxc3ncoredxx <AT> gmail <DOT> com>
AuthorDate: Sat Jul  8 06:43:58 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 00:35:14 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=9a41acc7

sr.ht ci: install pytest

Ensure pytest exists on sourcehut builds before running Portage test
suite.

Signed-off-by: Oskari Pirhonen <xxc3ncoredxx <AT> gmail.com>
Closes: https://github.com/gentoo/portage/pull/1064
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .builds/ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.builds/ci.yml b/.builds/ci.yml
index 18cdbe47a..797aea074 100644
--- a/.builds/ci.yml
+++ b/.builds/ci.yml
@@ -20,6 +20,13 @@ tasks:
   - setup-python: |
       portage/.builds/setup-python.sh "${PYTHON_VERSIONS[@]}"
 
+  - setup-tests: |
+      for py in "${PYTHON_VERSIONS[@]}"; do
+        source ".venv-$py/bin/activate"
+        pip install pytest
+        deactivate
+      done
+
   - test-install: |
       for py in "${PYTHON_VERSIONS[@]}"; do
         source ".venv-$py/bin/activate"

Reply via email to