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(-) (limited to '.gitlab-ci.yml') 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 From 971fd5dd89e1cd26cfffdd5fdd68873dac90bc94 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 29 Jun 2023 20:59:56 +0200 Subject: actually confirm apt install --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ae2981..e8971aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ 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 + - apt install -y redis-server - redis-server >/dev/null 2>&1 & - tox -e python -- --browser firefox @@ -38,7 +38,7 @@ 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 + - apt install -y redis-server - redis-server >/dev/null 2>&1 & - tox -e pypy3 -- --browser firefox -- cgit v1.2.3