Skip to content

Commit 5e7c856

Browse files
authored
Merge branch 'main' into issue-3713-azure-handoff-fix
2 parents a5ce52b + 38f22ef commit 5e7c856

797 files changed

Lines changed: 26659 additions & 29064 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/python-code-quality.yml

Lines changed: 99 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ env:
1212
UV_CACHE_DIR: /tmp/.uv-cache
1313

1414
jobs:
15-
pre-commit:
16-
name: Checks
15+
pre-commit-hooks:
16+
name: Pre-commit Hooks
1717
if: "!cancelled()"
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ["3.10", "3.14"]
21+
python-version: ["3.10"]
2222
runs-on: ubuntu-latest
2323
continue-on-error: true
2424
defaults:
@@ -37,16 +37,106 @@ jobs:
3737
python-version: ${{ matrix.python-version }}
3838
os: ${{ runner.os }}
3939
env:
40-
# Configure a constant location for the uv cache
4140
UV_CACHE_DIR: /tmp/.uv-cache
4241
- uses: actions/cache@v5
4342
with:
44-
path: ~/.cache/pre-commit
45-
key: pre-commit|${{ matrix.python-version }}|${{ hashFiles('python/.pre-commit-config.yaml') }}
46-
- uses: pre-commit/action@v3.0.1
47-
name: Run Pre-Commit Hooks
43+
path: ~/.cache/prek
44+
key: prek|${{ matrix.python-version }}|${{ hashFiles('python/.pre-commit-config.yaml') }}
45+
- uses: j178/prek-action@v1
46+
name: Run Pre-commit Hooks (excluding poe-check)
47+
env:
48+
SKIP: poe-check
4849
with:
49-
extra_args: --config python/.pre-commit-config.yaml --all-files
50+
extra-args: --cd python --all-files
51+
52+
package-checks:
53+
name: Package Checks
54+
if: "!cancelled()"
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
python-version: ["3.10"]
59+
runs-on: ubuntu-latest
60+
continue-on-error: true
61+
defaults:
62+
run:
63+
working-directory: ./python
64+
env:
65+
UV_PYTHON: ${{ matrix.python-version }}
66+
steps:
67+
- uses: actions/checkout@v6
68+
with:
69+
fetch-depth: 0
70+
- name: Set up python and install the project
71+
id: python-setup
72+
uses: ./.github/actions/python-setup
73+
with:
74+
python-version: ${{ matrix.python-version }}
75+
os: ${{ runner.os }}
76+
env:
77+
UV_CACHE_DIR: /tmp/.uv-cache
78+
- name: Run fmt, lint, pyright in parallel across packages
79+
run: uv run poe check-packages
80+
81+
samples-markdown:
82+
name: Samples & Markdown
83+
if: "!cancelled()"
84+
strategy:
85+
fail-fast: false
86+
matrix:
87+
python-version: ["3.10"]
88+
runs-on: ubuntu-latest
89+
continue-on-error: true
90+
defaults:
91+
run:
92+
working-directory: ./python
93+
env:
94+
UV_PYTHON: ${{ matrix.python-version }}
95+
steps:
96+
- uses: actions/checkout@v6
97+
with:
98+
fetch-depth: 0
99+
- name: Set up python and install the project
100+
id: python-setup
101+
uses: ./.github/actions/python-setup
102+
with:
103+
python-version: ${{ matrix.python-version }}
104+
os: ${{ runner.os }}
105+
env:
106+
UV_CACHE_DIR: /tmp/.uv-cache
107+
- name: Run samples lint
108+
run: uv run poe samples-lint
109+
- name: Run samples syntax check
110+
run: uv run poe samples-syntax
111+
- name: Run markdown code lint
112+
run: uv run poe markdown-code-lint
113+
114+
mypy:
115+
name: Mypy Checks
116+
if: "!cancelled()"
117+
strategy:
118+
fail-fast: false
119+
matrix:
120+
python-version: ["3.10"]
121+
runs-on: ubuntu-latest
122+
continue-on-error: true
123+
defaults:
124+
run:
125+
working-directory: ./python
126+
env:
127+
UV_PYTHON: ${{ matrix.python-version }}
128+
steps:
129+
- uses: actions/checkout@v6
130+
with:
131+
fetch-depth: 0
132+
- name: Set up python and install the project
133+
id: python-setup
134+
uses: ./.github/actions/python-setup
135+
with:
136+
python-version: ${{ matrix.python-version }}
137+
os: ${{ runner.os }}
138+
env:
139+
UV_CACHE_DIR: /tmp/.uv-cache
50140
- name: Run Mypy
51141
env:
52142
GITHUB_BASE_REF: ${{ github.event.pull_request.base.ref || github.base_ref || 'main' }}

0 commit comments

Comments
 (0)