2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Merge pull request #2165 from nwns/feature/redisascache

Add support for using Redis as a cache and a broker
This commit is contained in:
Oliver
2021-11-11 17:08:41 +11:00
committed by GitHub
3 changed files with 87 additions and 28 deletions

View File

@ -27,6 +27,7 @@ jobs:
INVENTREE_DEBUG: info
INVENTREE_MEDIA_ROOT: ./media
INVENTREE_STATIC_ROOT: ./static
INVENTREE_CACHE_HOST: localhost
services:
postgres:
@ -37,6 +38,11 @@ jobs:
ports:
- 5432:5432
redis:
image: redis
ports:
- 6379:6379
steps:
- name: Checkout Code
uses: actions/checkout@v2
@ -49,6 +55,7 @@ jobs:
sudo apt-get install libpq-dev
pip3 install invoke
pip3 install psycopg2
pip3 install django-redis>=5.0.0
invoke install
- name: Run Tests
run: invoke test