From c6a158cde8fa4c55545d004a526d7a45feb1799d Mon Sep 17 00:00:00 2001 From: "Daniel W. Anner" Date: Wed, 19 Jul 2023 12:41:18 -0400 Subject: [PATCH] Update validation.yml --- .github/workflows/validation.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 742f98e95..448de3f00 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -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