2.1 KiB
2.1 KiB
Overview of the Custom GitHub Actions used in the OpenVINO GitHub Actions CI
Several actions are written specifically for the needs of the OpenVINO workflows.
You can find all the custom actions and their source code here.
Refer to the official custom GitHub Action documentation for more information.
Available Custom Actions
- Setup Python
- System Info Print
- Smart CI (see details: feature documentation)
Setup Python
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.
actions/setup-python does not work on the Linux ARM64 machines so deadsnakes-action is used instead.
Usage
- 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'
show-cache-info: 'true'
where:
version- the Python version to install in theMAJOR.MINORformatpip-cache-path- the path to thepipcache on the mounted share. Read more about shares and caches hereshould-setup-pip-paths- whether the action should set up thePIP_CACHE_DIRandPIP_INSTALL_PATHenvironment variables for later usageself-hosted-runner- whether the runner is self-hosted. Read more about available runners hereshow-cache-info- whether the action should show the share space occupied by thepipcache
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