Skip to content

Support passing request params to a source #916

Support passing request params to a source

Support passing request params to a source #916

Workflow file for this run

name: Running mapproxy tests
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
services:
redis-server:
image: redis
ports:
- 6379:6379
couchdb:
image: couchdb:2
ports:
- 5984:5984
riak:
image: basho/riak-kv
ports:
- 8087:8087
- 8098:8098
azure-blob:
image: mcr.microsoft.com/azure-storage/azurite
ports:
- 10000:10000
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
MAPPROXY_TEST_COUCHDB: 'http://localhost:5984'
MAPPROXY_TEST_REDIS: '127.0.0.1:6379'
MAPPROXY_TEST_RIAK_HTTP: 'http://localhost:8098'
MAPPROXY_TEST_RIAK_PBC: 'pbc://localhost:8087'
MAPPROXY_TEST_AZURE_BLOB: 'http://localhost:10000'
# do not load /etc/boto.cfg with Python 3 incompatible plugin
# https://github.com/travis-ci/travis-ci/issues/5246#issuecomment-166460882
BOTO_CONFIG: '/doesnotexist'
steps:
- name: Install packages
run: |
sudo apt update
sudo apt install proj-bin libgeos-dev libgdal-dev libxslt1-dev libxml2-dev build-essential python-dev libjpeg-dev zlib1g-dev libfreetype6-dev protobuf-compiler libprotoc-dev -y
- name: Checkout sources
uses: actions/checkout@v4
- name: Use python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache python deps 💾
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.OS }}-python-${{ hashFiles('**/requirements-tests.txt') }}
restore-keys: |
${{ runner.OS }}-python-
${{ runner.OS }}-
- name: Install dependencies ⏬
run: |
pip install .
pip install -r requirements-tests.txt
pip freeze
- name: Run tests 🏗️
run: |
export LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$LD_PRELOAD
pytest mapproxy