Workflows #4
Workflow file for this run
This file contains hidden or 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: Ruff | |
on: [ push, pull_request ] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install ruff | |
- name: Run ruff | |
run: | | |
python -m ruff | |
- name: Check ruff format | |
run: | | |
python -m ruff format --check | |
- name: Verify migrations | |
run: | | |
python manage.py makemigrations --noinput | |
python manage.py makemigrations --check --dry-run --noinput --verbosity | |
python manage.py migrate --noinput |