feat: check rule format with pytest

This commit is contained in:
topsworld
2024-12-12 20:21:54 +08:00
committed by Guoliang Li
parent 42399ff1f6
commit d79f13e76f
6 changed files with 153 additions and 210 deletions

27
.github/workflows/test.yaml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
check-rule-format:
runs-on: ubuntu-latest
needs: [validate-lint]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-asyncio
- name: Check rule format with pytest
run: |
pytest -v -s ./test/check_rule_format.py