* leverage yamllint in GitHub actions * add pre-commits * validation updates * Update README.md * Update CONTRIBUTING.md
26 lines
533 B
YAML
26 lines
533 B
YAML
---
|
|
name: Validate definitions
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.6
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt
|
|
- name: Lint YAML files
|
|
run: yamllint --format parsable --strict -c=tests/yamllint.yaml .
|
|
- name: Run Device-Type Tests
|
|
run: pytest --tb=line -v
|