Update validation.yml

This commit is contained in:
Daniel W. Anner 2023-07-19 12:41:18 -04:00 committed by GitHub
parent 98490c0cd0
commit c6a158cde8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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