File tree Expand file tree Collapse file tree 3 files changed +20
-37
lines changed Expand file tree Collapse file tree 3 files changed +20
-37
lines changed Original file line number Diff line number Diff line change @@ -33,22 +33,14 @@ jobs:
33
33
restore-keys : |
34
34
pip-lint-
35
35
- name : Install dependencies
36
- uses : py-actions/py-dependency-install@v2
37
- with :
38
- path : requirements.txt
39
- - name : Install itself
40
36
run : |
41
- python setup.py install
37
+ make install
42
38
- name : Run linter
43
39
run : |
44
40
make lint
45
- - name : Prepare twine checker
46
- run : |
47
- pip install -U twine wheel
48
- python setup.py sdist bdist_wheel
49
41
- name : Run twine checker
50
42
run : |
51
- twine check dist/*
43
+ make check
52
44
53
45
test :
54
46
name : Test
81
73
restore-keys : |
82
74
pip-ci-${{ runner.os }}-${{ matrix.pyver }}-
83
75
- name : Install dependencies
84
- uses : py-actions/py-dependency-install@v2
85
- with :
86
- path : requirements.txt
76
+ run : |
77
+ make install
87
78
- name : Run unittests
88
79
env :
89
80
COLOR : ' yes'
@@ -109,8 +100,8 @@ jobs:
109
100
- name : Setup Python
110
101
uses : actions/setup-python@v2
111
102
- name : Install dependencies
112
- run :
113
- python -m pip install -U pip wheel twine build
103
+ run : |
104
+ make install
114
105
- name : Make dists
115
106
run :
116
107
python -m build
Original file line number Diff line number Diff line change 1
- SOURCES = setup.py async_timeout tests
2
-
3
1
test : lint
4
2
pytest tests
5
3
6
-
7
- lint : mypy check black flake8
8
-
9
-
10
- mypy :
4
+ lint : fmt
11
5
mypy
12
6
13
-
14
- black :
15
- isort -c $(SOURCES )
16
- black --check $(SOURCES )
17
-
18
- flake8 :
19
- flake8 $(SOURCES )
20
-
21
-
22
7
fmt :
23
- isort $(SOURCES )
24
- black $(SOURCES )
8
+ ifdef CI
9
+ pre-commit run --all-files --show-diff-on-failure
10
+ else
11
+ pre-commit run --all-files
12
+ endif
25
13
26
14
27
15
check :
28
- python setup.py check -rms
16
+ python -m build
17
+ twine check dist/*
18
+
19
+ install :
20
+ pip install -U pip
21
+ pip install -r requirements.txt
Original file line number Diff line number Diff line change 1
1
-e .
2
- black == 21.11b1 ; implementation_name == "cpython"
2
+ build == 0.7.0
3
3
docutils == 0.18.1
4
- flake8 == 4.0.1
5
- isort == 5.10.1
6
4
mypy == 0.910 ; implementation_name == "cpython"
7
5
pre-commit == 2.16.0
8
6
pytest == 6.2.5
9
7
pytest-asyncio == 0.16.0
10
8
pytest-cov == 3.0.0
9
+ twine == 3.7.0
You can’t perform that action at this time.
0 commit comments