Browse Source

chore: consolidate type checking in style workflow (#25053)

tags/1.8.1
-LAN- 1 month ago
parent
commit
b88146c443
No account linked to committer's email address
3 changed files with 3 additions and 6 deletions
  1. 0
    3
      .github/workflows/api-tests.yml
  2. 2
    2
      .github/workflows/style.yml
  3. 1
    1
      dev/basedpyright-check

+ 0
- 3
.github/workflows/api-tests.yml View File

- 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

+ 2
- 2
.github/workflows/style.yml View File

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'

+ 1
- 1
dev/basedpyright-check View File

cd "$SCRIPT_DIR/.." cd "$SCRIPT_DIR/.."


# run basedpyright checks # run basedpyright checks
uv --directory api run basedpyright
uv run --directory api --dev basedpyright

Loading…
Cancel
Save