Skip to content

Commit 743f230

Browse files
committed
👷 automatically install the correct numpy-typing-compat version in the the CI matrix
1 parent a596289 commit 743f230

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
name: CI
2+
permissions: read-all
23

34
on:
5+
pull_request:
46
push:
57
branches: [master]
6-
pull_request:
78
workflow_dispatch:
89

910
concurrency:
10-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1112
cancel-in-progress: true
1213

13-
permissions:
14-
contents: read
15-
pull-requests: write
16-
1714
env:
1815
UV_LOCKED: 1
1916

@@ -71,14 +68,8 @@ jobs:
7168
activate-environment: true
7269
python-version: ${{ matrix.py }}
7370

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 }}.* .
8273

8374
- name: basedpyright scipy-stubs
8475
run: basedpyright scipy-stubs
@@ -115,17 +106,11 @@ jobs:
115106
activate-environment: true
116107
python-version: ${{ matrix.py }}
117108

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 }}.* .
126111

127112
- name: basedpyright tests
128113
run: basedpyright tests
129114

130115
- 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

Comments
 (0)