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:
3333 restore-keys : |
3434 pip-lint-
3535 - name : Install dependencies
36- uses : py-actions/py-dependency-install@v2
37- with :
38- path : requirements.txt
39- - name : Install itself
4036 run : |
41- python setup.py install
37+ make install
4238 - name : Run linter
4339 run : |
4440 make lint
45- - name : Prepare twine checker
46- run : |
47- pip install -U twine wheel
48- python setup.py sdist bdist_wheel
4941 - name : Run twine checker
5042 run : |
51- twine check dist/*
43+ make check
5244
5345 test :
5446 name : Test
8173 restore-keys : |
8274 pip-ci-${{ runner.os }}-${{ matrix.pyver }}-
8375 - name : Install dependencies
84- uses : py-actions/py-dependency-install@v2
85- with :
86- path : requirements.txt
76+ run : |
77+ make install
8778 - name : Run unittests
8879 env :
8980 COLOR : ' yes'
@@ -109,8 +100,8 @@ jobs:
109100 - name : Setup Python
110101 uses : actions/setup-python@v2
111102 - name : Install dependencies
112- run :
113- python -m pip install -U pip wheel twine build
103+ run : |
104+ make install
114105 - name : Make dists
115106 run :
116107 python -m build
Original file line number Diff line number Diff line change 1- SOURCES = setup.py async_timeout tests
2-
31test : lint
42 pytest tests
53
6-
7- lint : mypy check black flake8
8-
9-
10- mypy :
4+ lint : fmt
115 mypy
126
13-
14- black :
15- isort -c $(SOURCES )
16- black --check $(SOURCES )
17-
18- flake8 :
19- flake8 $(SOURCES )
20-
21-
227fmt :
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
2513
2614
2715check :
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 11-e .
2- black == 21.11b1 ; implementation_name == "cpython"
2+ build == 0.7.0
33docutils == 0.18.1
4- flake8 == 4.0.1
5- isort == 5.10.1
64mypy == 0.910 ; implementation_name == "cpython"
75pre-commit == 2.16.0
86pytest == 6.2.5
97pytest-asyncio == 0.16.0
108pytest-cov == 3.0.0
9+ twine == 3.7.0
You can’t perform that action at this time.
0 commit comments