mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-12-22 23:23:20 +01:00
Update validation.yml
This commit is contained in:
parent
98490c0cd0
commit
c6a158cde8
23
.github/workflows/validation.yml
vendored
23
.github/workflows/validation.yml
vendored
@ -5,7 +5,7 @@ on: # yamllint disable-line rule:truthy
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -19,12 +19,33 @@ jobs:
|
||||
run: |
|
||||
yamllint --format github --strict \
|
||||
device-types/ module-types/
|
||||
format:
|
||||
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: Format YAML files (hooks)
|
||||
run: |
|
||||
pre-commit run --config .pre-commit-hooks-config.yaml --all-files
|
||||
- name: Format YAML files (yamlfmt)
|
||||
run: |
|
||||
pre-commit run --config .pre-commit-yamlfmt-config.yaml --all-files
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [lint, format]
|
||||
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: Install pytest plugin to annotate failures in GitHub
|
||||
run: pip install pytest-github-actions-annotate-failures
|
||||
- name: Run Test Cases
|
||||
|
Loading…
Reference in New Issue
Block a user