Files
langflow/scripts/gp/tests/conftest.py
RamGopalSrikar d6434dff67 fix(i18n): address PR review comments — tests, nightly build decoupling, GP test workflow
- Add pytest tests for gp_client.py (HMAC auth, HTTP errors, timeout)
- Add pytest tests for upload_strings.py and download_translations.py
- Add conftest.py to set sys.path so GP scripts can be imported from repo root
- Add scripts/gp/__init__.py to make gp a proper package for test imports
- Add gp-test.yml workflow to run GP script tests on PRs touching scripts/gp/**
- Decouple download-gp-bundle from nightly build chain:
  - Add continue-on-error: true so GP failure never blocks the build
  - Remove download-gp-bundle from needs/if of frontend-tests-linux,
    frontend-tests-windows, and release-nightly-build
  - Add warning annotation step that fires on GP download failure
2026-03-27 10:50:34 -04:00

7 lines
184 B
Python

"""Add scripts/gp to sys.path so bare imports (gp_client, upload_strings, etc.) resolve."""
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent.parent))