1 # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2 # SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries
4 # SPDX-License-Identifier: MIT
8 on: [pull_request, push]
12 runs-on: ubuntu-latest
14 - name: Dump GitHub context
16 GITHUB_CONTEXT: ${{ toJson(github) }}
17 run: echo "$GITHUB_CONTEXT"
18 - name: Translate Repo Name For Build Tools filename_prefix
21 echo ::set-output name=repo-name::Adafruit-Blinka-displayio
22 - name: Set up Python 3.6
23 uses: actions/setup-python@v1
29 - name: Checkout Current Repo
30 uses: actions/checkout@v1
33 - name: Checkout tools repo
34 uses: actions/checkout@v2
36 repository: adafruit/actions-ci-circuitpython-libs
38 - name: Install dependencies
39 # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
41 source actions-ci/install.sh
42 - name: Pip install pylint, black, & Sphinx
44 pip install --force-reinstall pylint black Sphinx sphinx-rtd-theme pre-commit
45 - name: Library version
46 run: git describe --dirty --always --tags
47 - name: Pre-commit hooks
49 pre-commit run --all-files
51 working-directory: docs
52 run: sphinx-build -E -W -b html . _build/html