Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 49 additions & 1 deletion .github/workflows/merge-gate-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,57 @@ on:
workflow_call:

jobs:
build-python-matrix:
name: Build Python Matrix
uses: $/.github/workflows/matrix.yml
with:
matrix_keys_json: '["python_versions"]'
permissions:
contents: read

get-maximum-python-version:
name: Get Maximum Python Version
needs:
- build-python-matrix
runs-on: "ubuntu-26.04"
permissions:
contents: read
outputs:
maximum-python-version: ${{ steps.get-maximum-python-version.outputs.python-version }}
steps:
- name: Get Maximum Python Version
id: get-maximum-python-version
env:
PYTHON_VERSIONS_MATRIX: ${{ needs.build-python-matrix.outputs.matrix }}
run: |
maximum_python_version="$(jq -r '.python_versions | max_by(split(".") | map(tonumber))' <<< "$PYTHON_VERSIONS_MATRIX")"
echo "python-version=$maximum_python_version" >> "$GITHUB_OUTPUT"

check-format-maximum-python:
name: Check Format (Python-${{ needs.get-maximum-python-version.outputs.maximum-python-version }})
needs:
- get-maximum-python-version
runs-on: "ubuntu-26.04"
permissions:
contents: read
steps:
- name: Check out Repository
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Set up Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@v11
with:
python-version: ${{ needs.get-maximum-python-version.outputs.maximum-python-version }}
poetry-version: "2.3.0"

- name: Check Format
run: poetry run -- nox -s format:check

approve-run-slow-tests:
name: Approve Running Slow Tests?
runs-on: "ubuntu-24.04"
runs-on: "ubuntu-26.04"
permissions:
contents: read
environment: manual-approval
Expand Down
1 change: 1 addition & 0 deletions noxconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ def importlinter(self) -> Path:
# The PTB does not have integration tests running with an Exasol DB.
exasol_versions=(),
plugins_for_nox_sessions=(UpdateTemplates,),
python_versions=("3.10", "3.11", "3.12"),
)
4 changes: 4 additions & 0 deletions test/resources/isort_stdlib_transition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""Formatting fixture for modules removed from the Python standard library."""

import cgi # noqa: F401
import json # noqa: F401
Loading