Use Sensorthings action for API tests (#1055)
This commit is contained in:
@@ -75,9 +75,7 @@ jobs:
|
||||
with:
|
||||
mongodb-version: 4.4
|
||||
- name: Install and run SensorThingsAPI
|
||||
run: |
|
||||
wget https://raw.githubusercontent.com/webb-ben/data/main/docker-compose.yaml
|
||||
docker-compose up -d
|
||||
uses: cgs-earth/sensorthings-action@v0.0.2
|
||||
- name: Install requirements 📦
|
||||
run: |
|
||||
pip3 install -r requirements.txt
|
||||
@@ -93,7 +91,6 @@ jobs:
|
||||
python3 tests/load_es_data.py tests/cite/ogcapi-features/canada-hydat-daily-mean-02HC003.geojson IDENTIFIER
|
||||
python3 tests/load_mongo_data.py tests/data/ne_110m_populated_places_simple.geojson
|
||||
gunzip < tests/data/hotosm_bdi_waterways.sql.gz | psql postgresql://postgres:${{ secrets.DatabasePassword || 'postgres' }}@localhost:5432/test
|
||||
python3 tests/load_sta_data.py tests/data/sta_iow_datastreams.json
|
||||
- name: run unit tests ⚙️
|
||||
env:
|
||||
POSTGRESQL_PASSWORD: ${{ secrets.DatabasePassword || 'postgres' }}
|
||||
|
||||
Reference in New Issue
Block a user