ci: fix killing redis-server

This commit is contained in:
Inex Code 2023-06-23 04:50:00 +03:00
parent b78ee5fcca
commit 1e840f8cff

View file

@ -5,7 +5,7 @@ name: default
steps: steps:
- name: Run Tests and Generate Coverage Report - name: Run Tests and Generate Coverage Report
commands: commands:
- kill $(ps aux | grep '[r]edis-server 127.0.0.1:6389' | awk '{print $2}') - kill $(ps aux | grep 'redis-server 127.0.0.1:6389' | awk '{print $2}')
- redis-server --bind 127.0.0.1 --port 6389 >/dev/null & - redis-server --bind 127.0.0.1 --port 6389 >/dev/null &
- coverage run -m pytest -q - coverage run -m pytest -q
- coverage xml - coverage xml