Skip to content

UV benchmarks

UV benchmarks #1467

name: CLI CPU ONNXRuntime Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
env:
UV_TORCH_BACKEND: cpu
jobs:
run_cli_cpu_onnxruntime_tests:
if: ${{
(github.event_name == 'push') ||
(github.event_name == 'workflow_dispatch') ||
contains( github.event.pull_request.labels.*.name, 'cli') ||
contains( github.event.pull_request.labels.*.name, 'cpu') ||
contains( github.event.pull_request.labels.*.name, 'onnxruntime') ||
contains( github.event.pull_request.labels.*.name, 'cli_cpu_onnxruntime')
}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Run tests
run: |
make test-cli-cpu-onnxruntime
- name: Run examples
run: |
make test-cli-cpu-onnxruntime-examples