Skip to content

Restore update workflow planner test and remove references to start node #513

Restore update workflow planner test and remove references to start node

Restore update workflow planner test and remove references to start node #513

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
VELVETFLOW_RUN_OPENAI_E2E: "1"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
- name: Run test suite
run: |
set -o pipefail
mkdir -p reports
pytest -vv --junitxml=reports/pytest.xml | tee reports/pytest.log
- name: Diagnose openai import
if: failure()
run: |
python - <<'PY'
import importlib.util
import importlib.metadata
import sys
from pathlib import Path
import openai
import agents
print("openai dist version:", importlib.metadata.version("openai"))
print("openai-agents dist version:", importlib.metadata.version("openai-agents"))
print("openai version:", getattr(openai, "__version__", None))
print("openai file:", getattr(openai, "__file__", None))
print("has AsyncOpenAI:", hasattr(openai, "AsyncOpenAI"))
print("openai spec:", importlib.util.find_spec("openai"))
print("agents file:", getattr(agents, "__file__", None))
print("agents spec:", importlib.util.find_spec("agents"))
print("cwd:", Path.cwd())
print("openai __path__:", getattr(openai, "__path__", None))
repo_candidates = sorted(
{p for p in Path(".").rglob("openai.py")}
| {p for p in Path(".").rglob("openai/__init__.py")}
)
print("repo openai candidates:")
for candidate in repo_candidates:
print(f" {candidate}")
print("sys.path:")
for entry in sys.path:
print(f" {entry}")
PY
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: reports
- name: Summarize results
if: always()
uses: test-summary/action@v2
with:
paths: reports/pytest.xml