fix: add DB prefill for default user, preset, humans, and persona for server #1917
Workflow file for this run
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: Black Code Formatter | |
on: | |
pull_request: | |
paths: | |
- '**.py' | |
workflow_dispatch: | |
jobs: | |
black-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: "Setup Python, Poetry and Dependencies" | |
uses: packetcoders/action-setup-cache-python-poetry@main | |
with: | |
python-version: "3.12" | |
poetry-version: "1.8.2" | |
install-args: "-E dev" # TODO: change this to --group dev when PR #842 lands | |
- name: Run Black | |
run: poetry run black --check . | |
# (Optional) If you want to automatically fix formatting issues | |
# Uncomment the following steps: | |
# - name: Auto-fix with Black and commit | |
# if: failure() | |
# run: | | |
# black . | |
# git config --local user.email "action@github.com" | |
# git config --local user.name "GitHub Action" | |
# git commit -am "Apply Black formatting" || echo "No changes to commit" | |
# git push |