From 9a41acc7ee5d39c390d9a09421ad2671acee0be8 Mon Sep 17 00:00:00 2001 From: Oskari Pirhonen Date: Sat, 8 Jul 2023 01:43:58 -0500 Subject: sr.ht ci: install pytest Ensure pytest exists on sourcehut builds before running Portage test suite. Signed-off-by: Oskari Pirhonen Closes: https://github.com/gentoo/portage/pull/1064 Signed-off-by: Sam James --- .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" -- cgit v1.2.3-65-gdbad