"projects/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "02898cdd81978f563f6db54fdef7c838e9488a0b"
Commit b391ad12 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac: format backend ci

parent 6c2eb814
name: Python CI
on:
push:
branches: ['main']
pull_request:
jobs:
build:
name: 'Format Backend'
env:
PUBLIC_API_BASE_URL: ''
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- latest
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Use Python
uses: actions/setup-python@v4
- name: Use Bun
uses: oven-sh/setup-bun@v1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Format backend
run: bun run format:backend
run: black . --exclude "/venv/"
- name: Check for changes after format
run: git diff --exit-code
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment