Skip to content

Add GitHub Actions workflow for Django tests with PostgreSQL #2

Add GitHub Actions workflow for Django tests with PostgreSQL

Add GitHub Actions workflow for Django tests with PostgreSQL #2

Workflow file for this run

name: Lint & Format
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run Black
run: black --check .
- name: Run isort
run: isort --check-only .
- name: Run flake8
run: flake8 .