Files
netbox-repo/.github/workflows/validation.yml
Daniel W. Anner f56d641a1b Adding dependabot & updating reqirements (#1026)
* Added dependabot template

* Testing dependabot

* Testing dependabot

* Added dependabot config. Updated pre-commit config to ignore the dependabot yaml file. Updated requirements.

* Added myself to the dependabot assignee list

* Fixed missing newline in dependabot config

* adding pre-commit to requirements

* Update dependabot.yml

* Update dependabot.yml

* Update dependabot.yml

Changed schedule to montly

* Modified Actions validation & pre-commit config
- Fixed spacing and newline issues in actions validation file
- Modified pre-commit config to only scan device-types and module-types, same as the validation action
2023-01-05 11:27:38 -05:00

24 lines
581 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: Run tests
run: pytest --tb=short -v