E2E TEST - hosted inference - STAGING #420
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: E2E TEST - hosted inference - STAGING | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| skip_warmup: | |
| type: boolean | |
| description: "Do you want to skip services warmup?" | |
| default: false | |
| test_target: | |
| type: choice | |
| description: "Which service you want to test?" | |
| options: | |
| - aws-lambda-serving | |
| - serverless-v2 | |
| jobs: | |
| build: | |
| runs-on: | |
| labels: depot-ubuntu-22.04-small | |
| group: public-depot | |
| timeout-minutes: 30 | |
| steps: | |
| - name: 🛎️ Checkout | |
| uses: actions/checkout@v6 | |
| - name: 🐍 Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: 📦 Cache Python packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements/**') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip-${{ matrix.python-version }}- | |
| - name: 🦾 Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements/requirements.test.unit.txt -r requirements/requirements.test.integration.txt -r requirements/requirements.sdk.http.txt | |
| - name: 📝 E2E test of HOSTED INFERENCE at 😎 STAGING LAMBDA 😎 🔥🔥🔥🔥 | |
| if: ${{ github.event.inputs.test_target == 'aws-lambda-serving' }} | |
| run: | |
| SKIP_WARMUP=${{ github.event.inputs.skip_warmup }} HOSTED_PLATFORM_TESTS_API_KEY=${{ secrets.LOAD_TEST_STAGING_API_KEY }} HOSTED_PLATFORM_TESTS_PROJECT=roboflow-staging-lambda OPENAI_KEY=${{ secrets.OPEN_AI_API_KEY }} GOOGLE_API_KEY=${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }} GOOGLE_VISION_API_KEY=${{ secrets.GOOGLE_VISION_API_KEY }} pytest tests/inference/hosted_platform_tests/ | |
| - name: 📝 E2E test of HOSTED INFERENCE at 😎 STAGING SERVERLESS 😎 🔥🔥🔥🔥 | |
| if: ${{ github.event.inputs.test_target == 'serverless-v2' }} | |
| run: | |
| SKIP_WARMUP=${{ github.event.inputs.skip_warmup }} HOSTED_PLATFORM_TESTS_API_KEY=${{ secrets.LOAD_TEST_STAGING_API_KEY }} HOSTED_PLATFORM_TESTS_PROJECT=roboflow-staging-serverless OPENAI_KEY=${{ secrets.OPEN_AI_API_KEY }} GOOGLE_API_KEY=${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }} GOOGLE_VISION_API_KEY=${{ secrets.GOOGLE_VISION_API_KEY }} pytest tests/inference/hosted_platform_tests/ |