Add Redis service to tests

This commit is contained in:
Silver Ghost 2022-11-15 14:46:54 +03:00
parent d9feb959f4
commit cf5a5c4c87
No known key found for this signature in database

View File

@ -8,6 +8,12 @@ on:
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
services:
redis:
image: redis
options: --entrypoint redis-server
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -24,6 +30,8 @@ jobs:
pip install coverage coveralls pip install coverage coveralls
- name: Run Tests - name: Run Tests
env:
REDIS_URL: redis://redis:6379/0
run: | run: |
python manage.py collectstatic --noinput python manage.py collectstatic --noinput
python manage.py migrate --noinput python manage.py migrate --noinput