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 b07090d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
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: {}
1 change: 1 addition & 0 deletions tests/openwisp2/settings.py
Original file line number Diff line number Diff line change
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 b07090d

Please sign in to comment.