File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
- permissions :
4
- contents : read
5
- packages : read
2
+ permissions : read-all
6
3
7
4
on :
8
5
workflow_dispatch :
9
6
pull_request :
10
7
push :
11
- branches :
12
- - main
8
+ branches : [main]
13
9
14
10
concurrency :
15
11
group : ${{ github.workflow }}-${{ github.ref }}
76
72
77
73
- name : Test package
78
74
run : >-
79
- uv run pytest src docs tests -ra -- cov --cov-report=xml
75
+ uv run pytest src docs tests -cov --cov-report=xml
80
76
--cov-report=term --durations=20
81
77
82
78
- name : Upload coverage report
@@ -111,7 +107,7 @@ jobs:
111
107
112
108
- name : Test package
113
109
run : >-
114
- uv run pytest src docs tests -ra - -cov --cov-report=xml
110
+ uv run pytest src docs tests --cov --cov-report=xml
115
111
--cov-report=term --durations=20 --mpl
116
112
117
113
- name : Upload coverage report
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ version_tuple = {version_tuple!r}
139
139
]
140
140
141
141
[tool .ruff .lint .per-file-ignores ]
142
- "tests/*.py" = [" ANN201" , " S101" ]
142
+ "tests/*.py" = [" ANN201" , " D1 " , " S101" ]
143
143
144
144
[tool .ruff .lint .flake8-import-conventions ]
145
145
banned-from = [" array_api_typing" ]
Original file line number Diff line number Diff line change 1
- """Tests."""
Original file line number Diff line number Diff line change 1
- """Tests for the HasArrayNamespace protocol."""
2
-
3
1
from types import SimpleNamespace
4
2
from typing import Protocol , runtime_checkable
5
3
You can’t perform that action at this time.
0 commit comments