Ensure OpenAI-compatible URL has the /v1 prefix expected by the SDK p… #65
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| schedule: | |
| - cron: '0 2 * * *' # Run nightly at 2 AM UTC | |
| jobs: | |
| smoke-test: | |
| if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.14' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run smoke tests (unit + api, excluding AI generated) | |
| run: | | |
| python -m pytest -m "unit or api" --tb=short | |
| - name: Run Robot Framework smoke tests | |
| run: | | |
| python -m robot robot_demos/calculator/ | |
| regression-test: | |
| if: github.event_name == 'schedule' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.14' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Install Playwright browsers | |
| run: | | |
| playwright install --with-deps | |
| - name: Run all pytest tests (excluding AI generated) | |
| run: | | |
| python -m pytest -m "not ai" --tb=short --maxfail=5 | |
| env: | |
| PW_HEADLESS: 1 | |
| - name: Run all Robot Framework tests | |
| run: | | |
| mkdir -p temps | |
| python -m robot --outputdir temps robot_demos/ | |
| - name: Install Allure CLI | |
| run: | | |
| wget https://github.com/allure-framework/allure2/releases/download/2.27.0/allure-2.27.0.tgz | |
| tar -zxvf allure-2.27.0.tgz | |
| sudo mv allure-2.27.0 /opt/allure | |
| sudo ln -s /opt/allure/bin/allure /usr/bin/allure | |
| - name: Generate Allure report | |
| if: always() | |
| run: | | |
| allure generate temps/allure-results -o allure-report --clean | |
| continue-on-error: true | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-${{ github.run_id }} | |
| path: | | |
| allure-report/ | |
| temps/log.html | |
| temps/report.html | |
| temps/output.xml |