diff --git a/.github/workflows/basic-checks.yaml b/.github/workflows/basic-checks.yaml new file mode 100644 index 0000000..cef4d8b --- /dev/null +++ b/.github/workflows/basic-checks.yaml @@ -0,0 +1,42 @@ +name: ๐Ÿšฆ Basic Checks + +on: + push: + branches: + - main + pull_request: + +jobs: + quality-checks: + name: Quality Checks + runs-on: ubuntu-latest + + steps: + - name: ๐Ÿ“ฅ Checkout code + uses: actions/checkout@v4 + + - name: ๐Ÿ Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: ๐Ÿ“ฆ Install dependencies + run: pip install -r requirements.txt + + - name: ๐ŸŽจ Run black (formatting) + run: black --check . + + - name: ๐Ÿงน Run isort (import sorting) + run: isort --check-only . + + - name: ๐Ÿง Run mypy (type checking) + run: mypy . + + - name: ๐Ÿ” Run pylint (linting) + run: pylint **/*.py + + - name: ๐Ÿงช Run tests with coverage + run: coverage run manage.py test + + - name: ๐Ÿ“Š Generate coverage report (fail if <85%) + run: coverage report --fail-under=85