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.
- Python Setup
- System Info Print
- Smart CI (see details: feature documentation)
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.
- name: Setup Python ${{ env.PYTHON_VERSION }}
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
pip-cache-path: ${{ env.PIP_CACHE_PATH }}
should-setup-pip-paths: 'true'
self-hosted-runner: 'true'
where:
version
- the Python version to install in theMAJOR.MINOR
formatpip-cache-path
- the path to thepip
cache on the mounted share. Read more in the shares and caches documentationshould-setup-pip-paths
- indicates whether the action should set up thePIP_CACHE_DIR
andPIP_INSTALL_PATH
environment variables for later usageself-hosted-runner
- indicates whether the runner is self-hosted. Learn more about available runners
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.
- name: System info
uses: ./openvino/.github/actions/system_info