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:
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user