Skip to content

Creating PR for branch feature/graphql_graphdb #2030

Creating PR for branch feature/graphql_graphdb

Creating PR for branch feature/graphql_graphdb #2030

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: UNS Sparkplug B Decoder MQTT Client
on:
push:
branches:
- "**"
paths:
- "02_mqtt-cluster/**/*.py"
- "02_mqtt-cluster/pyproject.toml"
- "02_mqtt-cluster/poetry.lock"
- "05_sparkplugb/**/*.py"
- "05_sparkplugb/pyproject.toml"
- "05_sparkplugb/poetry.lock"
- "05_sparkplugb/Dockerfile"
- ".github/workflows/uns_sparkplugb-app.yml"
- ".github/include/**"
pull_request:
branches:
- "**"
paths:
- "02_mqtt-cluster/**/*.py"
- "02_mqtt-cluster/pyproject.toml"
- "02_mqtt-cluster/poetry.lock"
- "05_sparkplugb/**/*.py"
- "05_sparkplugb/pyproject.toml"
- "05_sparkplugb/poetry.lock"
- "05_sparkplugb/Dockerfile"
- ".github/workflows/uns_sparkplugb-app.yml"
- ".github/include/**"
workflow_dispatch:
inputs:
pytest_add_opts:
description: "additional pytest options"
type: string
permissions:
contents: read
jobs:
build_code:
runs-on: ubuntu-latest
environment: dev
env:
UNS_mqtt.host: "localhost"
UNS_mqtt.port: 1883
services:
uns_mqtt:
image: emqx/emqx:latest
ports:
- "1883:1883"
- "8083:8083"
steps:
- uses: actions/checkout@v4
- name: Setup with python environment
uses: ./.github/include/setup_python/
with:
module: 05_sparkplugb
- name: Run all type of tests
uses: ./.github/include/execute_tests/
with:
module: 05_sparkplugb
integration_tests: true
SAFETY_API_KEY: ${{ secrets.SAFETY_API_KEY }}
pytest_flags: ${{ inputs.pytest_add_opts }}
build_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile and Test Dockerfile
uses: ./.github/include/test_docker_builds/
with:
module: 05_sparkplugb
image_name: uns/spb_mapper