]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blob - .github/workflows/build.yml
2582867ba777701eabcf19c888d4c5a68f3c50a7
[hackapet/Adafruit_Blinka_Displayio.git] / .github / workflows / build.yml
1 name: Build CI
2
3 on: [pull_request, push]
4
5 jobs:
6   test:
7     runs-on: ubuntu-latest
8     steps:
9     - name: Dump GitHub context
10       env:
11         GITHUB_CONTEXT: ${{ toJson(github) }}
12       run: echo "$GITHUB_CONTEXT"
13     - name: Translate Repo Name For Build Tools filename_prefix
14       id: repo-name
15       run: |
16         echo ::set-output name=repo-name::Adafruit-Blinka-displayio
17     - name: Set up Python 3.6
18       uses: actions/setup-python@v1
19       with:
20         python-version: 3.6
21     - name: Versions
22       run: |
23         python3 --version
24     - name: Checkout Current Repo
25       uses: actions/checkout@v1
26       with:
27         submodules: true
28     - name: Checkout tools repo
29       uses: actions/checkout@v2
30       with:
31         repository: adafruit/actions-ci-circuitpython-libs
32         path: actions-ci
33     - name: Install dependencies
34       # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
35       run: |
36         source actions-ci/install.sh
37     - name: Pip install pylint, black, & Sphinx
38       run: |
39         pip install --force-reinstall pylint black Sphinx sphinx-rtd-theme
40     - name: Library version
41       run: git describe --dirty --always --tags
42     - name: Check formatting
43       run: |
44         black --check --target-version=py35 .
45     - name: PyLint
46       run: |
47         pylint $( find . -path './*io/*.py' )
48         pylint $( find . -path './*io.py' )
49     - name: Build docs
50       working-directory: docs
51       run: sphinx-build -E -W -b html . _build/html