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

37 lines
862 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@v4.1.0
- name: Set up Python 3.8
uses: actions/setup-python@v5
2020-07-10 18:50:51 +02:00
with:
python-version: 3.8
2020-07-10 18:50:51 +02:00
- name: Install dependencies
2022-02-20 10:39:33 +01:00
run: pip install -r requirements.txt -r requirements_test.txt
- name: Register problem matchers
2020-07-10 18:50:51 +02:00
run: |
2022-02-20 10:39:33 +01:00
echo "::add-matcher::.github/workflows/matchers/ci-custom.json"
- name: Lint
run: python lint.py
- name: html-strict
run: make html-strict