summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/test-flatpak-gtk4.sh6
-rwxr-xr-x.gitlab-ci/test-flatpak.sh9
2 files changed, 8 insertions, 7 deletions
diff --git a/.gitlab-ci/test-flatpak-gtk4.sh b/.gitlab-ci/test-flatpak-gtk4.sh
index a299b641..2e775dab 100755
--- a/.gitlab-ci/test-flatpak-gtk4.sh
+++ b/.gitlab-ci/test-flatpak-gtk4.sh
@@ -8,8 +8,10 @@ export COVERAGE_FILE="${COV_DIR}/.coverage.${COV_KEY}"
mkdir -p "${COV_DIR}"
export TEST_GTK_VERSION=4.0
-python3 -m pip install --user pytest pytest-faulthandler coverage
+python3 -m venv _venv
+. _venv/bin/activate
+python3 -m pip install pytest pytest-faulthandler coverage
python3 setup.py build_tests
python3 -m coverage run --context "${COV_KEY}" tests/runtests.py
python3 -m coverage lcov -o "${COV_DIR}/${COV_KEY}.py.lcov"
-chmod -R 777 "${COV_DIR}" \ No newline at end of file
+chmod -R 777 "${COV_DIR}"
diff --git a/.gitlab-ci/test-flatpak.sh b/.gitlab-ci/test-flatpak.sh
index b76eefa6..57b7f926 100755
--- a/.gitlab-ci/test-flatpak.sh
+++ b/.gitlab-ci/test-flatpak.sh
@@ -2,8 +2,7 @@
set -e
-python3 -m pip install --user pytest pytest-faulthandler
-# for some reason pip3 fails the first time now..
-# https://gitlab.com/freedesktop-sdk/freedesktop-sdk/issues/776
-python3 -m pip install --user pytest pytest-faulthandler
-python3 setup.py test -s \ No newline at end of file
+python3 -m venv _venv
+. _venv/bin/activate
+python3 -m pip install pytest pytest-faulthandler
+python3 setup.py test -s