Add instance_id_prefix support to get_status_by (fixes #601) #288
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: Validate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Floor version. Pin an older azure-functions (< 1.26.0) that | |
| # predates the centralized df_dumps / df_loads serializers so this | |
| # leg exercises the legacy serialization fallback in | |
| # df_serialization. | |
| - python-version: "3.10" | |
| functions-sdk: "azure-functions<1.26.0" | |
| - python-version: "3.11" | |
| functions-sdk: "" | |
| - python-version: "3.12" | |
| functions-sdk: "" | |
| # SDK path: Python 3.13 with the beta that first ships df_dumps / | |
| # df_loads, exercising the SDK-delegated serialization branch. | |
| # TODO: change to "azure-functions>=2.2.0" once 2.2.0 GA ships, and | |
| # drop the explicit override step below. | |
| - python-version: "3.13" | |
| functions-sdk: "azure-functions>=2.2.0b5" | |
| - python-version: "3.14" | |
| functions-sdk: "" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Pin azure-functions version | |
| if: matrix.functions-sdk != '' | |
| run: pip install "${{ matrix.functions-sdk }}" | |
| - name: Run Linter | |
| # Lint only on the canonical Python version. On Python 3.12+, PEP 701 | |
| # changed f-string tokenization so pycodestyle inspects tokens inside | |
| # f-strings, producing false positives (e.g. the ':' in 'http://' or | |
| # the indentation of multi-line f-string concatenations). Linting is | |
| # environment-agnostic, so running it once on 3.10 is sufficient. | |
| if: matrix.python-version == '3.10' | |
| run: | | |
| cd azure | |
| flake8 . --count --show-source --statistics | |
| - name: Run tests | |
| run: | | |
| pytest --ignore=samples-v2 | |
| test-samples: | |
| strategy: | |
| matrix: | |
| app_name: [blueprint, fan_in_fan_out, function_chaining] | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./samples-v2/${{ matrix.app_name }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r ../../requirements.txt | |
| pip install ../.. --no-cache-dir --upgrade --no-deps --force-reinstall | |
| - name: Run tests | |
| run: | | |
| python -m pytest |