Skip to content

Commit

Permalink
Fix update schema workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emikeb committed Jul 30, 2024
1 parent 5b5de9e commit 7b8ca52
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/gating.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,28 @@ jobs:
# * DL3041 - Specify version with dnf install -y <package>-<version>
ignore: DL3041
failure-threshold: warning

validate-rule:
name: Validate Rule
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install Poetry
run: python -m pip install poetry

- name: Install Dependencies
run: poetry install --only=main

- name: Validate rule file
run: |
poetry run retasc validate-rule src/retasc/validator/example_rule.yaml | tee validation_output.log
- name: Assert the rule file is valid
run: |
grep -q "The rule is valid." validation_output.log
2 changes: 1 addition & 1 deletion .github/workflows/update-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: poetry install --only=main

- name: Generate schema
run: retasc generate-schema schema.yaml
run: poetry run retasc generate-schema schema.yaml

- name: Prepare deployment directory
run: |
Expand Down
1 change: 0 additions & 1 deletion src/retasc/validator/config.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/retasc/validator/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pydantic import BaseModel, Field

from retasc.validator.config import SCHEMA_VERSION
SCHEMA_VERSION = 1


class JiraIssue(BaseModel):
Expand Down
7 changes: 0 additions & 7 deletions tests/test_config.py

This file was deleted.

0 comments on commit 7b8ca52

Please sign in to comment.