trying to get it working
This commit is contained in:
parent
cb49affc89
commit
224a951796
17
.github/workflows/build.yaml
vendored
17
.github/workflows/build.yaml
vendored
@ -8,6 +8,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
# Label used to access the service container
|
||||||
|
redis-later42:
|
||||||
|
# Docker Hub image
|
||||||
|
image: redis
|
||||||
|
# Set health checks to wait until redis has started
|
||||||
|
options: >-
|
||||||
|
--health-cmd "redis-cli ping"
|
||||||
|
--health-interval 10s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -23,12 +34,6 @@ jobs:
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install coverage coveralls
|
pip install coverage coveralls
|
||||||
|
|
||||||
- name: Start Redis
|
|
||||||
uses: superchargejs/redis-github-action@1.4.0
|
|
||||||
with:
|
|
||||||
redis-version: 5
|
|
||||||
redis-container-name: redis-later42
|
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
env:
|
env:
|
||||||
REDIS_URL: redis://redis-later42:6379/0
|
REDIS_URL: redis://redis-later42:6379/0
|
||||||
|
Loading…
Reference in New Issue
Block a user