generated from guardrails-ai/validator-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c2975c
commit becbdbf
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Pull Request Quality Checks | ||
on: | ||
pull_request: | ||
types: [ opened, synchronize ] | ||
branches: [ main ] | ||
jobs: | ||
run-qa: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: Run qa | ||
run: | | ||
pip install ".[dev]" | ||
make qa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
.PHONY: test dev lint type qa | ||
|
||
dev: | ||
pip install -e ".[dev]" | ||
|
||
lint: | ||
ruff check . | ||
|
||
tests: | ||
pytest ./test | ||
|
||
type: | ||
pyright validator | ||
|
||
test: | ||
pytest -v tests | ||
|
||
qa: | ||
make lint | ||
make type | ||
make type | ||
make test |
File renamed without changes.