File tree Expand file tree Collapse file tree 2 files changed +19
-20
lines changed Expand file tree Collapse file tree 2 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,31 @@ jobs:
28
28
29
29
steps :
30
30
31
- - uses : actions/checkout@v4
31
+ - uses : actions/checkout@v5
32
32
33
33
- uses : actions/setup-python@v5
34
34
with :
35
35
python-version : ${{ matrix.python-version }}
36
36
allow-prereleases : true
37
37
38
- - run : ./run.sh ci-install
39
- - run : ./run.sh ci-run
38
+ - run : pip install -e '.[all]' --group tests
39
+ - run : coverage run -m pytest --runslow
40
+ - run : ./run.sh coverage-report
40
41
41
- - uses : codecov/codecov-action@v4
42
+ - uses : codecov/codecov-action@v5
42
43
with :
43
44
token : ${{ secrets.CODECOV_TOKEN }}
45
+
46
+ typing :
47
+ runs-on : ubuntu-latest
48
+
49
+ steps :
50
+
51
+ - uses : actions/checkout@v5
52
+
53
+ - uses : actions/setup-python@v5
54
+ with :
55
+ python-version-file : ' pyproject.toml'
56
+
57
+ - run : pip install -e . --group typing
58
+ - run : mypy
Original file line number Diff line number Diff line change @@ -74,13 +74,6 @@ function test-all {
74
74
75
75
76
76
function typing {
77
- if on-pypy; then
78
- # mypy does not work on pypy as of January 2020
79
- # https://github.com/python/typed_ast/issues/97#issuecomment-484335190
80
- echo " mypy does not work on pypy, doing nothing"
81
- return
82
- fi
83
-
84
77
mypy --strict --show-error-codes src " $@ "
85
78
86
79
mkdir -p build
@@ -140,15 +133,6 @@ function entr-project-files {
140
133
}
141
134
142
135
143
- function ci-install {
144
- pip install -e ' .[all]' --group tests --group typing
145
- }
146
-
147
- function ci-run {
148
- command coverage run -m pytest --runslow && coverage-report && typing
149
- }
150
-
151
-
152
136
function on-pypy {
153
137
[[ $( python -c ' import sys; print(sys.implementation.name)' ) == pypy ]]
154
138
}
You can’t perform that action at this time.
0 commit comments