Skip to content

Commit e9a4475

Browse files
Add memcached docker service to CI
1 parent 0fd4e26 commit e9a4475

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
build:
77

88
runs-on: ubuntu-latest
9+
services:
10+
memcached:
11+
image: memcached
12+
ports:
13+
- 11211:11211
914
strategy:
1015
matrix:
1116
python-version: ['3.6', '3.7', '3.8', '3.9']

test_settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
'connection-errors': {
2626
'BACKEND': f'django.core.cache.backends.memcached.{memcache_backend}',
27-
'LOCATION': 'test-connection-errors',
27+
'LOCATION': '127.0.0.1:11211',
2828
},
2929
'connection-errors-redis': {
3030
'BACKEND': 'django_redis.cache.RedisCache',

0 commit comments

Comments
 (0)