3 on: [pull_request, push]
9 - name: Dump GitHub context
11 GITHUB_CONTEXT: ${{ toJson(github) }}
12 run: echo "$GITHUB_CONTEXT"
13 - name: Translate Repo Name For Build Tools filename_prefix
15 run: echo ::set-output name=repo-name::Adafruit-Blinka
16 - name: Set up Python 3.7
17 uses: actions/setup-python@v1
23 - name: Checkout Current Repo
24 uses: actions/checkout@v2
27 - name: Checkout tools repo
28 uses: actions/checkout@v2
30 repository: adafruit/actions-ci-circuitpython-libs
32 - name: Install dependencies
33 # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
35 source actions-ci/install.sh
36 - name: Pip install pylint, black, & Sphinx
38 pip install --force-reinstall pylint==2.7.1 black Sphinx sphinx-rtd-theme
39 - name: Library version
40 run: git describe --dirty --always --tags
41 - name: Check formatting
43 black --check --target-version=py35 .
46 pylint $( find src -name '*.py' )
47 ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace $( find . -path "./examples/*.py" ))
49 working-directory: docs
50 run: sphinx-build -E -W -b html . _build/html