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:
|
||||
tests:
|
||||
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:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@ -23,12 +34,6 @@ jobs:
|
||||
pip install -r requirements.txt
|
||||
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
|
||||
env:
|
||||
REDIS_URL: redis://redis-later42:6379/0
|
||||
|
Loading…
Reference in New Issue
Block a user