mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 02:36:29 +08:00
fix(ci): use setup-python to avoid 504 errors and use project oxlint config (#29613)
This commit is contained in:
parent
916df2d0f7
commit
b8d54d745e
10
.github/workflows/autofix.yml
vendored
10
.github/workflows/autofix.yml
vendored
@ -13,11 +13,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
# Use uv to ensure we have the same ruff version in CI and locally.
|
|
||||||
- uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
|
- uses: astral-sh/setup-uv@v6
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
cd api
|
cd api
|
||||||
uv sync --dev
|
uv sync --dev
|
||||||
@ -85,7 +86,6 @@ jobs:
|
|||||||
|
|
||||||
- name: oxlint
|
- name: oxlint
|
||||||
working-directory: ./web
|
working-directory: ./web
|
||||||
run: |
|
run: pnpm exec oxlint --config .oxlintrc.json --fix .
|
||||||
pnpx oxlint --fix
|
|
||||||
|
|
||||||
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
|
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user