trying to fix redis start
This commit is contained in:
parent
47c07c442a
commit
f00103b521
9
.github/workflows/build.yaml
vendored
9
.github/workflows/build.yaml
vendored
@ -8,7 +8,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -24,13 +23,15 @@ jobs:
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install coverage coveralls
|
pip install coverage coveralls
|
||||||
|
|
||||||
|
- name: Start Redis v5
|
||||||
|
uses: superchargejs/redis-github-action@1.1.0
|
||||||
|
with:
|
||||||
|
redis-version: ${{ matrix.redis-version }}
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
env:
|
env:
|
||||||
REDIS_URL: redis://redis:6379/0
|
REDIS_URL: redis://redis:6379/0
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
|
||||||
apt-get install -y redis-server
|
|
||||||
service redis-server start
|
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
python manage.py migrate --noinput
|
python manage.py migrate --noinput
|
||||||
python manage.py test --noinput
|
python manage.py test --noinput
|
||||||
|
Loading…
Reference in New Issue
Block a user