49
49
- name : pyright
50
50
uses :
jakebailey/[email protected]
51
51
52
- # generate-matrix:
53
- # name: Generate Test Matrix
54
- # runs-on: ubuntu-latest
55
- # timeout-minutes: 1
56
-
57
- # outputs:
58
- # matrix: ${{ steps.set-matrix.outputs.matrix }}
59
-
60
- # steps:
61
- # - uses: actions/[email protected]
62
-
63
- # - name: Install uv
64
- # uses: astral-sh/[email protected]
65
- # with:
66
- # python-version: "3.13"
67
-
68
- # - name: Generate Matrix
69
- # id: set-matrix
70
- # shell: bash
71
- # run: |
72
- # matrix=$(uv run scripts/generate_matrix.py | jq -c)
73
- # echo "matrix=$matrix" >> $GITHUB_OUTPUT
52
+ # NOTE: mypy ignores `uv run --with=...` (and `--isolated` does not help), so we
53
+ # manually (re)install the desired version directly in the environment.
74
54
75
55
typecheck :
76
56
runs-on : ubuntu-latest
@@ -91,13 +71,14 @@ jobs:
91
71
activate-environment : true
92
72
python-version : ${{ matrix.py }}
93
73
94
- # NOTE: mypy ignores `uv run --with=...` (and `--isolated` does not help), so we
95
- # manually (re)install the desired version directly in the environment.
96
74
- name : sync env
97
75
run : uv sync --no-editable
98
76
99
77
- name : install specific numpy version
100
- run : uv pip install --upgrade "numpy-typing-compat==${{ matrix.np }}.*"
78
+ run : >
79
+ uv pip install --upgrade
80
+ "numpy==${{ matrix.np }}.*"
81
+ "numpy-typing-compat==${{ matrix.np }}.*"
101
82
102
83
- name : basedpyright scipy-stubs
103
84
run : basedpyright scipy-stubs
@@ -134,13 +115,14 @@ jobs:
134
115
activate-environment : true
135
116
python-version : ${{ matrix.py }}
136
117
137
- # NOTE: mypy ignores `uv run --with=...` (and `--isolated` does not help), so we
138
- # manually (re)install the desired version directly in the environment.
139
118
- name : sync env
140
119
run : uv sync --no-editable
141
120
142
121
- name : install specific numpy version
143
- run : uv pip install --upgrade "numpy-typing-compat==${{ matrix.np }}.*"
122
+ run : >
123
+ uv pip install --upgrade
124
+ "numpy==${{ matrix.np }}.*"
125
+ "numpy-typing-compat==${{ matrix.np }}.*"
144
126
145
127
- name : basedpyright tests
146
128
run : basedpyright tests
0 commit comments