Skip to content

Commit

Permalink
[ci] Updated system dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Aug 31, 2023
1 parent a8bfd78 commit d6cd4ad
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,18 @@ jobs:
- name: Install system libraries
run: |
sudo apt update
sudo apt-get -qq -y install xmlsec1 gettext
sudo apt-get -qq -y install xmlsec1 gettext \
sqlite3 \
fping \
gdal-bin \
libproj-dev \
libgeos-dev \
libspatialite-dev \
spatialite-bin \
libsqlite3-mod-spatialite
- name: Start InfluxDB and Redis container
run: docker-compose up -d influxdb redis

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand Down
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3"

services:
influxdb:
image: influxdb:1.8-alpine
volumes:
- influxdb-data:/var/lib/influxdb
ports:
- "8086:8086"
environment:
INFLUXDB_DB: openwisp2
INFLUXDB_USER: openwisp
INFLUXDB_USER_PASSWORD: openwisp

redis:
image: redis:alpine
ports:
- "6379:6379"
entrypoint: redis-server --appendonly yes

volumes:
influxdb-data: {}
3 changes: 2 additions & 1 deletion tests/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
'OPTIONS': {
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'openwisp_utils.loaders.DependencyLoader',
'django.template.loaders.app_directories.Loader',
],
'context_processors': [
'django.template.context_processors.debug',
Expand Down Expand Up @@ -370,6 +370,7 @@
},
}
}
DATABASES['default']['ENGINE'] = 'openwisp_utils.db.backends.spatialite'

if os.environ.get('SAMPLE_APP', False):
INSTALLED_APPS.remove('openwisp_radius')
Expand Down

0 comments on commit d6cd4ad

Please sign in to comment.