Files
netbox-repo/.github/workflows/validation.yml
Ryan Merolle 7b303a5ace YAML Formatting & Validation (#347)
* leverage yamllint in GitHub actions 

* add pre-commits

* validation updates

* Update README.md

* Update CONTRIBUTING.md
2021-02-27 07:25:47 -05:00

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