File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
1
5
name : Build CI
2
6
3
7
on : [pull_request, push]
@@ -38,14 +42,14 @@ jobs:
38
42
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
39
43
run : |
40
44
source actions-ci/install.sh
41
- - name : Pip install pylint, black, & Sphinx
45
+ - name : Pip install pylint, Sphinx, pre-commit
42
46
run : |
43
- pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme
47
+ pip install --force-reinstall pylint Sphinx sphinx-rtd-theme pre-commit
44
48
- name : Library version
45
49
run : git describe --dirty --always --tags
46
- - name : Check formatting
50
+ - name : Pre-commit hooks
47
51
run : |
48
- black --check --target-version=py35 .
52
+ pre-commit run --all-files
49
53
- name : PyLint
50
54
run : |
51
55
pylint $( find . -path './adafruit*.py' )
55
59
- name : Build docs
56
60
working-directory : docs
57
61
run : sphinx-build -E -W -b html . _build/html
62
+ - name : Build README
63
+ run : |
64
+ pip install --user --upgrade setuptools wheel twine readme_renderer testresources
65
+ python setup.py sdist
66
+ python setup.py bdist_wheel --universal
67
+ twine check dist/*
You can’t perform that action at this time.
0 commit comments