* 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
24 lines
581 B
YAML
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
|