File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-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+
15name : Build CI
26
37on : [pull_request, push]
@@ -38,14 +42,14 @@ jobs:
3842 # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
3943 run : |
4044 source actions-ci/install.sh
41- - name : Pip install pylint, black, & Sphinx
45+ - name : Pip install pylint, Sphinx, pre-commit
4246 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
4448 - name : Library version
4549 run : git describe --dirty --always --tags
46- - name : Check formatting
50+ - name : Pre-commit hooks
4751 run : |
48- black --check --target-version=py35 .
52+ pre-commit run --all-files
4953 - name : PyLint
5054 run : |
5155 pylint $( find . -path './adafruit*.py' )
5559 - name : Build docs
5660 working-directory : docs
5761 run : sphinx-build -E -W -b html . _build/html
62+ - name : Check For setup.py
63+ id : need-pypi
64+ run : |
65+ echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
5866 - name : Build Python package
67+ if : contains(steps.need-pypi.outputs.setup-py, 'setup.py')
5968 run : |
6069 pip install --upgrade setuptools wheel twine readme_renderer testresources
6170 python setup.py sdist
You can’t perform that action at this time.
0 commit comments