Skip to content

Commit

Permalink
django redis workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dom-inic committed Nov 28, 2023
1 parent 117bd42 commit 5a613cf
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/django_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@


name: Django Redis

on:
workflow_call:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

jobs:

test:
runs-on: ubuntu-20.04

container: python:3.9.6

services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test
env:
REDIS_LOCATION: redis://redis:6379/?db=1

0 comments on commit 5a613cf

Please sign in to comment.