* Create * Update validation.yml * testing fixes * Update validation.yml * Added missing uses to validation file * Update HP-5120-48G-PoEP-EI.yaml * testing fixes * Added newline at end of yaml file * removing unnessecary tasks from validation * Update HP-5120-24G-PoEP-EI.yaml * Update HP-5120-24G-PoEP-EI.yaml
27 lines
716 B
YAML
27 lines
716 B
YAML
---
|
|
name: Validate definitions
|
|
on: # yamllint disable-line rule:truthy
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: 3.8
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt
|
|
- name: Lint YAML files
|
|
run: |
|
|
yamllint --format github --strict \
|
|
device-types/ module-types/
|
|
- name: Format YAML files (yamlfmt)
|
|
run: |
|
|
pre-commit run --config .pre-commit-yamlfmt-config.yaml --all-files
|
|
- name: Run tests
|
|
run: pytest --tb=short -v
|