Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf36b82

Browse files
committedJan 5, 2025·
update
1 parent b91cad8 commit cf36b82

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed
 

‎.github/workflows/api-tests.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,23 @@ jobs:
4242
run: poetry install -C api --with dev
4343

4444
- name: Check dependencies in pyproject.toml
45-
run: poetry run -C api bash dev/pytest/pytest_artifacts.sh
45+
run: poetry run -P api bash dev/pytest/pytest_artifacts.sh
4646

4747
- name: Run Unit tests
48-
run: poetry run -C api bash dev/pytest/pytest_unit_tests.sh
48+
run: poetry run -P api bash dev/pytest/pytest_unit_tests.sh
4949

5050
- name: Run ModelRuntime
51-
run: poetry run -C api bash dev/pytest/pytest_model_runtime.sh
51+
run: poetry run -P api bash dev/pytest/pytest_model_runtime.sh
5252

5353
- name: Run dify config tests
54-
run: poetry run -C api python dev/pytest/pytest_config_tests.py
54+
run: poetry run -P api python dev/pytest/pytest_config_tests.py
5555

5656
- name: Run Tool
57-
run: poetry run -C api bash dev/pytest/pytest_tools.sh
57+
run: poetry run -P api bash dev/pytest/pytest_tools.sh
5858

5959
- name: Run mypy
6060
run: |
61-
pushd api
62-
poetry run python -m mypy --install-types --non-interactive .
63-
popd
61+
poetry run -C api python -m mypy --install-types --non-interactive .
6462
6563
- name: Set up dotenvs
6664
run: |
@@ -80,4 +78,4 @@ jobs:
8078
ssrf_proxy
8179
8280
- name: Run Workflow
83-
run: poetry run -C api bash dev/pytest/pytest_workflow.sh
81+
run: poetry run -P api bash dev/pytest/pytest_workflow.sh

‎.github/workflows/style.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838
if: steps.changed-files.outputs.any_changed == 'true'
3939
run: |
4040
poetry run -C api ruff --version
41-
poetry run -C api ruff check ./api
42-
poetry run -C api ruff format --check ./api
41+
poetry run -C api ruff check ./
42+
poetry run -C api ruff format --check ./
4343
4444
- name: Dotenv check
4545
if: steps.changed-files.outputs.any_changed == 'true'
46-
run: poetry run -C api dotenv-linter ./api/.env.example ./web/.env.example
46+
run: poetry run -P api dotenv-linter ./api/.env.example ./web/.env.example
4747

4848
- name: Lint hints
4949
if: failure()

‎.github/workflows/vdb-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ jobs:
7070
tidb
7171
7272
- name: Test Vector Stores
73-
run: poetry run -C api bash dev/pytest/pytest_vdb.sh
73+
run: poetry run -P api bash dev/pytest/pytest_vdb.sh

0 commit comments

Comments
 (0)
Please sign in to comment.