Add Redis service to tests
This commit is contained in:
parent
d9feb959f4
commit
cf5a5c4c87
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
@ -8,6 +8,12 @@ on:
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis
|
||||
options: --entrypoint redis-server
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@ -24,6 +30,8 @@ jobs:
|
||||
pip install coverage coveralls
|
||||
|
||||
- name: Run Tests
|
||||
env:
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
run: |
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py migrate --noinput
|
||||
|
Loading…
Reference in New Issue
Block a user