chore #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Django Code Formatter | |
# Enable Buildkit and let compose use it to speed up image building | |
env: | |
DOCKER_BUILDKIT: 1 | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
on: | |
pull_request: | |
branches: [ "master", "feature"] | |
paths: ["apps/**"] | |
push: | |
branches: [ "master", "feature"] | |
paths: ["apps/**"] | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code Repository | |
uses: actions/[email protected] | |
- name: Set up Python 3.11.4 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11.4 | |
check-latest: true | |
- name: Install and Run Pre-commit | |
uses: pre-commit/[email protected] | |
with: | |
config: .pre-commit-config.yaml |