Skip to content

Commit

Permalink
build: add pre-commit add GithubActions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Dec 15, 2023
1 parent ae11b42 commit 8f51d99
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Setup Poetry
run: make install-poetry install-packages

Expand All @@ -23,8 +27,5 @@ jobs:
- name: Run Lint
run: make lint

- name: Run pre-commit
run: make pre-commit

- name: Run Django tests on Mysql
run: make run-database && sleep 30 && make test-mysql
19 changes: 19 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'

- uses: pre-commit/[email protected]

0 comments on commit 8f51d99

Please sign in to comment.