Update version.py (#2505) #521
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 tests - inference_models (CPU) | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| e2e-tests-inference-models-gpu: | |
| runs-on: | |
| labels: depot-ubuntu-22.04-4 | |
| group: public-depot | |
| timeout-minutes: 30 | |
| steps: | |
| - name: 🛎️ Checkout | |
| uses: actions/checkout@v6 | |
| - name: 📦 Cache Python packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/uv | |
| key: ${{ runner.os }}-uv-3.12-${{ hashFiles('inference_models/pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-uv-3.12- | |
| - name: 📦 Cache apt packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/apt-cache | |
| key: ${{ runner.os }}-apt-cuda-12-4 | |
| restore-keys: | | |
| ${{ runner.os }}-apt-cuda- | |
| - name: 🐍 Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.12 | |
| check-latest: true | |
| - name: 📦 Install dependencies | |
| working-directory: inference_models | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgles2-mesa libegl1 | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| python -m uv venv | |
| python -m uv pip install -e .[test,onnx-cpu,torch-cpu] --python .venv | |
| - name: 🧪 Run E2E tests | |
| working-directory: inference_models | |
| timeout-minutes: 20 | |
| run: | | |
| source .venv/bin/activate | |
| ROBOFLOW_API_KEY=${{ secrets.LOAD_TEST_PRODUCTION_API_KEY }} python -m pytest -m "e2e_model_inference and not gpu_only" tests/e2e_platform_tests |