This commit is contained in:
Bowen Liang 2025-03-20 15:12:01 +08:00
parent e2f66c7851
commit d01ea4c242

View File

@ -20,7 +20,7 @@ jobs:
defaults:
run:
shell: bash
working-directory: ./api
# working-directory: ./api
strategy:
matrix:
python-version:
@ -45,23 +45,23 @@ jobs:
- name: Check Poetry lockfile
run: |
uv lock --check
uv lock --project api --check
- name: Install dependencies
run: uv sync --all-groups
run: uv sync --project api --all-groups
# - name: Check dependencies in pyproject.toml
# run: poetry run -P api bash dev/pytest/pytest_artifacts.sh
- name: Run Unit tests
run: uv run bash ../dev/pytest/pytest_unit_tests.sh
run: uv run --project api bash ../dev/pytest/pytest_unit_tests.sh
- name: Run dify config tests
run: uv python dev/pytest/pytest_config_tests.py
run: uv run --project api python dev/pytest/pytest_config_tests.py
- name: Run mypy
run: |
uv python -m mypy --install-types --non-interactive .
uv run --project api python -m mypy --install-types --non-interactive .
- name: Set up dotenvs
run: |