chore: consolidate type checking in style workflow (#25053)
This commit is contained in:
3
.github/workflows/api-tests.yml
vendored
3
.github/workflows/api-tests.yml
vendored
@@ -62,9 +62,6 @@ jobs:
|
|||||||
- name: Run dify config tests
|
- name: Run dify config tests
|
||||||
run: uv run --project api dev/pytest/pytest_config_tests.py
|
run: uv run --project api dev/pytest/pytest_config_tests.py
|
||||||
|
|
||||||
- name: Run Basedpyright Checks
|
|
||||||
run: dev/basedpyright-check
|
|
||||||
|
|
||||||
- name: Set up dotenvs
|
- name: Set up dotenvs
|
||||||
run: |
|
run: |
|
||||||
cp docker/.env.example docker/.env
|
cp docker/.env.example docker/.env
|
||||||
|
4
.github/workflows/style.yml
vendored
4
.github/workflows/style.yml
vendored
@@ -44,9 +44,9 @@ jobs:
|
|||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: uv sync --project api --dev
|
run: uv sync --project api --dev
|
||||||
|
|
||||||
- name: Run ty check
|
- name: Run Basedpyright Checks
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: dev/ty-check
|
run: dev/basedpyright-check
|
||||||
|
|
||||||
- name: Dotenv check
|
- name: Dotenv check
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
|
@@ -6,4 +6,4 @@ SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
|||||||
cd "$SCRIPT_DIR/.."
|
cd "$SCRIPT_DIR/.."
|
||||||
|
|
||||||
# run basedpyright checks
|
# run basedpyright checks
|
||||||
uv --directory api run basedpyright
|
uv run --directory api --dev basedpyright
|
||||||
|
Reference in New Issue
Block a user