From ce6e8382b980b41eb9369f009ea492cafcf0437d Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 29 Jun 2023 20:51:15 +0200 Subject: install and run redis on CI --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8562f11..6ae2981 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" default: - image: python:latest + image: python:bullseye # Pip's cache doesn't store the python packages # https://pip.pypa.io/en/stable/topics/caching/ # @@ -24,6 +24,8 @@ test: - pip install poetry && pip install "playwright=="$(poetry show playwright | grep version | cut -f 2 -d ":" | tr -d " ") - playwright install firefox - playwright install-deps + - apt install redis-server + - redis-server >/dev/null 2>&1 & - tox -e python -- --browser firefox test-pypy: @@ -36,6 +38,8 @@ test-pypy: - pip install poetry && pip install "playwright=="$(poetry show playwright | grep version | cut -f 2 -d ":" | tr -d " ") - playwright install firefox - playwright install-deps + - apt install redis-server + - redis-server >/dev/null 2>&1 & - tox -e pypy3 -- --browser firefox lint: -- cgit v1.2.3