fix: correct attach_yaml name in MQTT request and simplify grpc warnings #1222
Workflow file for this run
This file contains hidden or 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: basic test | |
| on: | |
| push: | |
| tags: | |
| - ".*" | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| simple-checks: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - uses: pre-commit/action@v3.0.0 | |
| unit-tests: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| needs: simple-checks | |
| env: | |
| TOXENV: py3 | |
| TOXCFG: tox.ini | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| env: | |
| cache-name: cache-${TOXENV} | |
| with: | |
| path: .tox | |
| key: ${{ runner.os }}-tox-${{ env.cache-name }}-${{ hashFiles('pyproject.toml') }}-${{ matrix.python-version }} | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ matrix.python-version }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: run tests | |
| run: | | |
| uv sync --all-extras | |
| uvx --python ${{ matrix.python-version }} tox -c ${TOXCFG} -e ${TOXENV} | |
| integration-tests: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| needs: unit-tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # integration tests | |
| - TOXENV: py3-generic | |
| TOXCFG: tox-integration.ini | |
| - TOXENV: py3-mqtt | |
| TOXCFG: tox-integration.ini | |
| - TOXENV: py3-http | |
| TOXCFG: tox-integration.ini | |
| - TOXENV: py3-grpc | |
| TOXCFG: tox-integration.ini | |
| - TOXENV: py3-graphql | |
| TOXCFG: tox-integration.ini | |
| services: | |
| docker: | |
| image: docker | |
| env: | |
| TOXENV: ${{ matrix.TOXENV }} | |
| TOXCFG: ${{ matrix.TOXCFG }} | |
| steps: | |
| - uses: docker/setup-buildx-action@v3 | |
| continue-on-error: true | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| env: | |
| cache-name: cache-${{ matrix.TOXENV }} | |
| with: | |
| path: .tox | |
| key: ${{ runner.os }}-tox-${{ env.cache-name }}-${{ hashFiles('pyproject.toml') }} | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install Protoc | |
| if: ${{ contains(matrix.TOXENV, 'grpc') }} | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| version: "23.x" | |
| - name: Run tests | |
| run: | | |
| uv sync --all-extras --all-packages | |
| uvx tox -c ${TOXCFG} -e ${TOXENV} | |
| custom-backend-tests: | |
| name: Custom Backend Tests | |
| needs: unit-tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Bats and bats libs | |
| id: setup-bats | |
| uses: bats-core/bats-action@3.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Run tests | |
| env: | |
| BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} | |
| working-directory: ./example/custom_backend | |
| run: ./run_tests.sh |