[GHA] test install #7
Workflow file for this run
This file contains 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: Test install | |
permissions: read-all | |
on: | |
pull_request: # remove | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
- release_v* | |
paths-ignore: | |
- '**/*.md' | |
- 'docs/**/*' | |
jobs: | |
install-cpu: | |
name: Test install [${{ matrix.backend }}] | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
backend: ["torch", "tf", "onnx", "openvino"] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
lfs: true | |
fetch-depth: 0 # Fetch full history to allow checking out any branch or PR | |
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | |
with: | |
python-version: 3.10.14 | |
cache: pip | |
- name: Install NNCF and test requirements | |
run: | | |
pip install -e . | |
pip install -r tests/cross_fw/examples/requirements.txt | |
- name: Print installed modules | |
run: pip list | |
- name: Run install test scope | |
run: pytest tests/cross_fw/install -rA -s --host-configuration cpu --backend ${{ matrix.backend }} | |
install-torch-gpu: | |
name: Test install [torch-gpu] | |
defaults: | |
run: | |
shell: bash | |
runs-on: aks-linux-4-cores-28gb-gpu-tesla-t4 | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
steps: | |
- name: Install dependencies | |
run : | | |
sudo apt-get update | |
sudo apt-get --assume-yes install build-essential ninja-build libgl1-mesa-dev libglib2.0-0 wget make virtualenv | |
- name: Download CUDA | |
run: | | |
wget -q https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run | |
sudo sh cuda_12.4.0_550.54.14_linux.run --toolkit --silent | |
- name: Runner info | |
continue-on-error: true | |
run: | | |
export PATH=/usr/local/cuda-12.4/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
nvidia-smi | |
cat /proc/cpuinfo | |
nvcc --version | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
lfs: true | |
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | |
with: | |
python-version: 3.10.14 | |
cache: pip | |
- name: Install NNCF and test requirements | |
run: | | |
pip install -e . | |
pip install -r tests/cross_fw/examples/requirements.txt | |
- name: Print installed modules | |
run: pip list | |
- name: Run install test scope | |
run: | | |
export PATH=/usr/local/cuda-12.4/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
pytest tests/cross_fw/install -rA -s --host-configuration gpu --backend torch |