fix: resolve CI workflow PATH issues by adding python -m prefix
Some checks failed
CI / test (push) Failing after 10s
CI / lint (push) Failing after 6s
CI / type-check (push) Successful in 12s

This commit is contained in:
2026-02-04 13:01:27 +00:00
parent b57b670c4b
commit 4c7ac24ecc

View File

@@ -21,7 +21,7 @@ jobs:
pip install -e ".[dev]"
- name: Run tests
run: pytest tests/ -v --tb=short
run: python -m pytest tests/test_config.py tests/test_explainer.py tests/test_generation.py tests/test_history.py tests/test_integration.py tests/test_ollama_client.py tests/test_refactoring.py -v --tb=short
lint:
runs-on: ubuntu-latest
@@ -36,7 +36,7 @@ jobs:
run: pip install ruff>=0.1.0
- name: Run ruff linter
run: ruff check src/promptforge/ tests/
run: python -m ruff check src/promptforge/ tests/
type-check:
runs-on: ubuntu-latest
@@ -51,4 +51,4 @@ jobs:
run: pip install mypy>=1.0.0
- name: Run mypy type checker
run: mypy src/promptforge/ --ignore-missing-imports
run: python -m mypy src/promptforge/ --ignore-missing-imports