Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

2.7 KB
Raw Blame

Custom GitHub Actions

Custom actions, written specifically for OpenVINO workflows, are located in the actions folder along with their source code.

Refer to the official custom GitHub Action documentation for more information.

Available Custom Actions

  • Python Setup
  • System Info Print
  • Smart CI (see details: feature documentation)
  • OpenVINO Provider (see details: documentation)
  • Docker image handling (see details: Docker image documentation)
  • Artifact storage and restoration (store_artifacts, restore_artifacts)
  • Dependency and compiler cache management (cache)
  • Wheel installation (install_ov_wheels)
  • Manifest creation (create_manifest)
  • Coverage collection (coverage_toolkit)
  • Check completion waiting (wait-for-check-completion)

Python Setup

This custom action installs the required Python version and environment variables on the runner. Under the hood it uses the GitHub-provided actions/setup-python, and community-provided deadsnakes-action, depending on the machine architecture. Since actions/setup-python does not work on the Linux ARM64 machines, deadsnakes-action is used instead.

On Windows x64, Python 3.15 and 3.15t use the official CPython NuGet packages, pinned to 3.15.2, to avoid the machine-wide installer. The action adds the selected interpreter to PATH and exports PYTHON315_EXECUTABLE or PYTHON315T_EXECUTABLE for builds that need explicit paths; these installs are not registered with py.

Usage

  - name: Setup Python ${{ env.PYTHON_VERSION }}
    uses: ./openvino/.github/actions/setup_python
    with:
      version: '3.11'
      use-pip-proxy: 'true'
      set-pip-install-path: 'true'
      self-hosted-runner: 'true'

where:

  • version - the Python version to install in the MAJOR.MINOR format
  • pip-cache-path - the path to the pip cache on the mounted share. Read more in the shares and caches documentation
  • set-pip-install-path - indicates whether the action should set up the PIP_CACHE_DIR and PIP_INSTALL_PATH environment variables for later usage
  • self-hosted-runner - indicates whether the runner is self-hosted. Learn more about available runners

System Info Print

This custom action prints the system information in the standard output:

  • Operating system
  • Machine architecture
  • CPU, RAM, and memory information

Works on Linux, macOS, and Windows.

Usage

  - name: System info
    uses: ./openvino/.github/actions/system_info