Skip to content

Commit

Permalink
gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravnavani committed Sep 11, 2024
1 parent 3c2975c commit becbdbf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pr_qc.yml
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
14 changes: 10 additions & 4 deletions Makefile
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.

0 comments on commit becbdbf

Please sign in to comment.