Skip to content

Commit

Permalink
Add workflow to lint using djLint
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Dec 4, 2024
1 parent 7730e2e commit 7d8194f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,32 @@ on:
- cron: '0 6 * * *'

jobs:
lint:
ruff:
runs-on: ubuntu-latest
name: Lint
name: Lint Python
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v2

djlint:
runs-on: ubuntu-latest
name: Lint HTML
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5

- name: Install dependencies
run: |
pip install -U pip
pip install djlint
- name: Lint HTML
run: djlint --lint .

test:
needs: lint
needs: ruff

name: "Python ${{ matrix.python-version }}"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7d8194f

Please sign in to comment.