mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-25 22:11:29 +01:00
Update GH Actions CI Workflow (#684)
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
parent
c353bed9dd
commit
df7e1c845d
13
.github/workflows/lint.yml
vendored
13
.github/workflows/lint.yml
vendored
@ -2,23 +2,22 @@ name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
# On other branches the `pull_request` trigger will be used
|
||||
branches: [current, next]
|
||||
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.6
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.6
|
||||
python-version: 3.8
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
run: pip install -r requirements.txt
|
||||
- name: Lint
|
||||
run: |
|
||||
python travis.py
|
||||
|
Loading…
Reference in New Issue
Block a user