|
1 | 1 | name: CI |
| 2 | +permissions: read-all |
2 | 3 |
|
3 | 4 | on: |
| 5 | + pull_request: |
4 | 6 | push: |
5 | 7 | branches: [master] |
6 | | - pull_request: |
7 | 8 | workflow_dispatch: |
8 | 9 |
|
9 | 10 | concurrency: |
10 | | - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} |
| 11 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
11 | 12 | cancel-in-progress: true |
12 | 13 |
|
13 | | -permissions: |
14 | | - contents: read |
15 | | - pull-requests: write |
16 | | - |
17 | 14 | env: |
18 | 15 | UV_LOCKED: 1 |
19 | 16 |
|
|
71 | 68 | activate-environment: true |
72 | 69 | python-version: ${{ matrix.py }} |
73 | 70 |
|
74 | | - - name: sync env |
75 | | - run: uv sync --no-editable |
76 | | - |
77 | | - - name: install specific numpy version |
78 | | - run: > |
79 | | - uv pip install --upgrade |
80 | | - "numpy==${{ matrix.np }}.*" |
81 | | - "numpy-typing-compat==${{ matrix.np }}.*" |
| 71 | + - name: install dependencies |
| 72 | + run: uv pip install --exact --group type numpy==${{ matrix.np }}.* . |
82 | 73 |
|
83 | 74 | - name: basedpyright scipy-stubs |
84 | 75 | run: basedpyright scipy-stubs |
@@ -115,17 +106,11 @@ jobs: |
115 | 106 | activate-environment: true |
116 | 107 | python-version: ${{ matrix.py }} |
117 | 108 |
|
118 | | - - name: sync env |
119 | | - run: uv sync --no-editable |
120 | | - |
121 | | - - name: install specific numpy version |
122 | | - run: > |
123 | | - uv pip install --upgrade |
124 | | - "numpy==${{ matrix.np }}.*" |
125 | | - "numpy-typing-compat==${{ matrix.np }}.*" |
| 109 | + - name: install dependencies |
| 110 | + run: uv pip install --exact --group type numpy==${{ matrix.np }}.* . |
126 | 111 |
|
127 | 112 | - name: basedpyright tests |
128 | 113 | run: basedpyright tests |
129 | 114 |
|
130 | 115 | - name: mypy tests |
131 | | - run: mypy --no-incremental --cache-dir=/dev/null --soft-error-limit=-1 tests |
| 116 | + run: mypy --no-incremental --cache-dir=/dev/null tests |
0 commit comments