Skip to content

Only attempt to extract table, pk and param name if report datasource… #138

Only attempt to extract table, pk and param name if report datasource…

Only attempt to extract table, pk and param name if report datasource… #138

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout qwc-docker
uses: actions/checkout@master
with:
repository: qwc-services/qwc-docker
path: qwc-docker
- name: Setting up python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Run unittests
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
wget -P src/libs -i libs.txt
FLASK_DEBUG=1 PYTHONPATH=$PWD/src FONT_DIR=$PWD/tests/fonts CONFIG_PATH=$PWD/tests/config/ python test.py
- name: Validate schema
run: |
python -m pip install check-jsonschema
check-jsonschema --check-metaschema schemas/qwc-document-service.json
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,latest-${GITHUB_REF:11:4}-lts,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
else
echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
fi
- name: Build and publish docker image
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 }}"