Skip to content

Bump werkzeug from 2.3.4 to 3.0.1 #149

Bump werkzeug from 2.3.4 to 3.0.1

Bump werkzeug from 2.3.4 to 3.0.1 #149

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
if: ${{ false }} # disable for now
steps:
- uses: actions/checkout@master
- name: Checkout qwc-docker
uses: actions/checkout@master
with:
repository: qwc-services/qwc-docker
path: qwc-docker
- name: Start demo database
run: |
cd qwc-docker
sed -i 's|host=qwc-postgis|host=localhost|' pg_service-write.conf
sed -i 's|port=5432|port=5439|' pg_service-write.conf
cp pg_service-write.conf ~/.pg_service.conf
sed -i 's|qwc-qgis-server|localhost:8001|' volumes/config/default/legendConfig.json
sed -i "s|\/legends\/|$PWD\/volumes\/legends\/|" volumes/config/default/legendConfig.json
sed -i -e 's|# ports:|ports:|g' -e 's|# - "127.0.0.1| - "127.0.0.1|g' docker-compose-example.yml
docker-compose -f docker-compose-example.yml up -d qwc-postgis qwc-qgis-server
- name: Setting up python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Run unittests
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
CONFIG_PATH=$PWD/qwc-docker/volumes/config/ python test.py
build:
# needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@master
- name: Get version tag
id: get_tag
run: |
if [ ${{ endsWith(github.ref, '-lts') }} = true ]; then
echo "tag=latest-lts,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
else
echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
fi
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
if: github.event_name != 'pull_request'
with:
name: sourcepole/${{ github.event.repository.name }}
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag.outputs.tag }}"