esphome-docs/.github/workflows/lint.yml

33 lines
694 B
YAML
Raw Normal View History

2020-07-10 18:50:51 +02:00
name: Lint
on:
push:
# On other branches the `pull_request` trigger will be used
branches: [current, next]
2020-07-10 18:50:51 +02:00
pull_request:
2021-11-25 23:05:01 +01:00
types: [opened, edited, reopened, synchronize]
2020-07-10 18:50:51 +02:00
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
2020-07-10 18:50:51 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
2020-07-10 18:50:51 +02:00
uses: actions/setup-python@v2
with:
python-version: 3.8
2020-07-10 18:50:51 +02:00
- name: Install dependencies
run: pip install -r requirements.txt
2020-07-10 18:50:51 +02:00
- name: Lint
run: |
python travis.py
make html-strict