open-webui/.github/workflows/format-backend.yaml

30 lines
677 B
YAML
Raw Normal View History

2024-01-03 23:43:35 +01:00
name: Python CI
on:
push:
branches: ['main']
pull_request:
jobs:
build:
name: 'Format Backend'
2024-01-03 23:43:35 +01:00
env:
PUBLIC_API_BASE_URL: ''
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- latest
steps:
- uses: actions/checkout@v4
- name: Use Python
uses: actions/setup-python@v4
- name: Use Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2024-03-31 10:43:52 +02:00
pip install black
2024-01-03 23:43:35 +01:00
- name: Format backend
run: bun run format:backend
- name: Check for changes after format
run: git diff --exit-code