Skip to content

Commit 403fc0d

Browse files
committed
👷 extract the stubdefaulter step into a dedicated job
1 parent d373c5d commit 403fc0d

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ jobs:
5252
# see https://github.com/microsoft/pyright/issues/10832
5353
version: 1.1.403
5454

55+
stubdefaulter:
56+
runs-on: ubuntu-latest
57+
timeout-minutes: 5
58+
steps:
59+
- uses: actions/[email protected]
60+
61+
- name: setup uv
62+
uses: astral-sh/[email protected]
63+
with:
64+
python-version: "3.13"
65+
66+
# avoid stubdefaulter checking the tests as if they were stubs
67+
- name: exclude tests
68+
run: rm -rf tests
69+
70+
- name: stubdefaulter check
71+
run: uv run stubdefaulter --check --exit-zero --packages .
72+
5573
# NOTE: mypy ignores `uv run --with=...` (and `--isolated` does not help), so we
5674
# manually (re)install the desired version directly in the environment.
5775

@@ -89,9 +107,6 @@ jobs:
89107
- name: stubtest scipy
90108
run: stubtest --ignore-disjoint-bases --allowlist=.mypyignore scipy
91109

92-
- name: stubdefaulter check
93-
run: stubdefaulter --check --exit-zero --packages .
94-
95110
typetest:
96111
runs-on: ubuntu-latest
97112
timeout-minutes: 5

0 commit comments

Comments
 (0)