Unpin numpy #160
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test plugins ⚙️ | |
on: [push, pull_request] | |
env: | |
POSTGRESQL_PASSWORD: ${{ secrets.DatabasePassword || 'postgres' }} | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
name: setup Python | |
with: | |
python-version: '3.10' | |
- name: Install and run PostgreSQL/PostGIS 📦 | |
uses: huaxk/postgis-action@v1 | |
with: | |
postgresql password: ${{ env.POSTGRESQL_PASSWORD }} | |
postgresql db: 'test' | |
- name: show build | |
run: | | |
docker build . | |
- name: Run pygeoapi | |
run: | | |
docker run -d -it --name pygeoapi -p 5000:80 $(docker build -q .) | |
sleep 10 | |
docker logs pygeoapi | |
- name: Install requirements 📦 | |
run: | | |
pip3 install https://github.com/geopython/pygeoapi/archive/refs/heads/master.zip | |
pip3 install -r requirements.txt | |
pip3 install -r requirements-dev.txt | |
python3 setup.py install | |
- name: setup test data ⚙️ | |
run: | | |
gunzip < tests/data/hotosm_bdi_waterways.sql.gz | psql postgresql://postgres:${{ env.POSTGRESQL_PASSWORD }}@localhost:5432/test | |
- name: run unit tests ⚙️ | |
env: | |
POSTGRESQL_PASSWORD: ${{ env.POSTGRESQL_PASSWORD }} | |
run: | | |
pytest tests/test_ckan_provider.py | |
pytest tests/test_geopandas_provider.py | |
pytest tests/test_postgresql_provider.py | |
pytest tests/test_sitemap_process.py | |
pytest tests/test_sparql_provider.py | |
pytest tests/test_xml_formatter.py |