Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
b391ad12
"docs/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "e9f3cddf95e58ca17641db793c420a1b6e5424c0"
Commit
b391ad12
authored
Mar 31, 2024
by
Timothy J. Baek
Browse files
refac: format backend ci
parent
6c2eb814
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
.github/workflows/format-backend.yaml
.github/workflows/format-backend.yaml
+14
-9
No files found.
.github/workflows/format-backend.yaml
View file @
b391ad12
name
:
Python CI
name
:
Python CI
on
:
on
:
push
:
push
:
branches
:
[
'
main'
]
branches
:
[
'
main'
]
pull_request
:
pull_request
:
jobs
:
jobs
:
build
:
build
:
name
:
'
Format
Backend'
name
:
'
Format
Backend'
env
:
PUBLIC_API_BASE_URL
:
'
'
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
strategy
:
strategy
:
matrix
:
matrix
:
node
-version
:
python
-version
:
[
3.11
]
-
latest
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
-
name
:
Use Python
uses
:
actions/setup-python@v4
-
name
:
Set up Python
-
name
:
Use Bun
uses
:
actions/setup-python@v2
uses
:
oven-sh/setup-bun@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
python -m pip install --upgrade pip
python -m pip install --upgrade pip
pip install black
pip install black
-
name
:
Format backend
-
name
:
Format backend
run
:
bun run format:backend
run
:
black . --exclude "/venv/"
-
name
:
Check for changes after format
-
name
:
Check for changes after format
run
:
git diff --exit-code
run
:
git diff --exit-code
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment