Skip to content

Commit

Permalink
Add Precommit test
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjames committed Dec 20, 2022
1 parent 01bff80 commit f287ee6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Precommit
on: [push, pull_request]

jobs:
precommit:
name: Precommit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- run: pip install -r requirements.txt
- run: python manage.py pre-commit
- run: git diff --exit-code

0 comments on commit f287ee6

Please sign in to comment.