From 4959ed3641d98d930e1fd6c61b1d75d23a11cc50 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Tue, 2 Mar 2021 15:14:30 +0100 Subject: [PATCH] Fix running redis in tests --- .github/workflows/ci.yml | 3 +++ livesync/pytest.ini | 2 ++ payment_paypal/pytest.ini | 2 ++ vc_zoom/pytest.ini | 2 ++ 4 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 500f047..8c3ba77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -226,6 +226,9 @@ jobs: cd "${GITHUB_WORKSPACE}/${{ matrix.plugin }}" pip install -e . + - name: Install redis + run: sudo apt-get install redis-server + - name: Setup database run: | export PGHOST=localhost diff --git a/livesync/pytest.ini b/livesync/pytest.ini index 572be82..85a4aed 100644 --- a/livesync/pytest.ini +++ b/livesync/pytest.ini @@ -12,3 +12,5 @@ filterwarnings = ignore::UserWarning # port_for via pytest-redis ignore:Sampling from a set deprecated:DeprecationWarning:port_for +; use redis-server from $PATH +redis_exec = redis-server diff --git a/payment_paypal/pytest.ini b/payment_paypal/pytest.ini index e9ec865..89fa33c 100644 --- a/payment_paypal/pytest.ini +++ b/payment_paypal/pytest.ini @@ -12,3 +12,5 @@ filterwarnings = ignore::UserWarning # port_for via pytest-redis ignore:Sampling from a set deprecated:DeprecationWarning:port_for +; use redis-server from $PATH +redis_exec = redis-server diff --git a/vc_zoom/pytest.ini b/vc_zoom/pytest.ini index 26d0b57..76d670e 100644 --- a/vc_zoom/pytest.ini +++ b/vc_zoom/pytest.ini @@ -12,3 +12,5 @@ filterwarnings = ignore::UserWarning # port_for via pytest-redis ignore:Sampling from a set deprecated:DeprecationWarning:port_for +; use redis-server from $PATH +redis_exec = redis-server