forked from open-webui/open-webui
Tibo De Peuter
d37bfc1278
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Successful in 30m34s
Python CI / Format Backend (latest, 2.x) (pull_request) Failing after 24s
Python CI / Format Backend (latest, 3.x) (pull_request) Failing after 7s
Bun CI / Format & Build Frontend (pull_request) Successful in 49s
31 lines
743 B
YAML
31 lines
743 B
YAML
name: Python CI
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
name: 'Format Backend'
|
|
env:
|
|
PUBLIC_API_BASE_URL: ''
|
|
RUNNER_TOOL_CACHE: /toolcache
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version:
|
|
- latest
|
|
python-version: [ '2.x', '3.x' ]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Use Bun
|
|
uses: oven-sh/setup-bun@v1
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install yapf
|
|
- name: Format backend
|
|
run: bun run format:backend
|