-
Notifications
You must be signed in to change notification settings - Fork 302
120 lines (111 loc) · 4.07 KB
/
Copy pathcall_precommit_windows.yml
File metadata and controls
120 lines (111 loc) · 4.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: call-precommit-windows
permissions: read-all
on:
workflow_call:
inputs:
python_version:
description: 'Python version'
type: string
required: true
override_requirements:
description: 'Override requirements'
default: ''
type: string
required: false
defaults:
run:
shell: bash
jobs:
common:
timeout-minutes: 40
runs-on: windows-2025
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
lfs: true
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ inputs.python_version }}
- name: Override constraints
if: ${{ inputs.override_requirements != '' }}
run: python .github/scripts/override_constraints.py "${{ inputs.override_requirements }}"
- name: Install NNCF and test requirements
run: pip install . -r tests/common/requirements.txt
- name: Print installed modules
run: pip list
- name: Run common precommit test scope
run: make test-common
env:
NUM_WORKERS: 2
onnx:
timeout-minutes: 40
runs-on: windows-2025-8-core
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
lfs: true
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ inputs.python_version }}
- name: Override constraints
if: ${{ inputs.override_requirements != '' }}
run: python .github/scripts/override_constraints.py "${{ inputs.override_requirements }}"
- name: Install NNCF and test requirements
run: pip install . -r tests/onnx/requirements.txt
- name: Print installed modules
run: pip list
- name: Run ONNX precommit test scope
run: make test-onnx
env:
NUM_WORKERS: 4
openvino:
timeout-minutes: 40
runs-on: windows-2025-8-core
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
lfs: true
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ inputs.python_version }}
- name: Override constraints
if: ${{ inputs.override_requirements != '' }}
run: python .github/scripts/override_constraints.py "${{ inputs.override_requirements }}"
- name: Install NNCF and test requirements
run: pip install . -r tests/openvino/requirements.txt
- name: Print installed modules
run: pip list
- name: Run OV precommit test scope
run: make test-openvino
env:
NUM_WORKERS: 4
pytorch-cpu:
timeout-minutes: 40
runs-on: windows-2025-8-core
env:
NNCF_EXTENSION_LOAD_TIMEOUT: 180
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
lfs: true
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ inputs.python_version }}
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
- name: Override constraints
if: ${{ inputs.override_requirements != '' }}
run: python .github/scripts/override_constraints.py "${{ inputs.override_requirements }}"
- name: Install NNCF and test requirements
run: |
pip install . -r tests/torch/requirements.txt
- name: Print installed modules
run: pip list
- name: Run torch precommit test scope
run: |
set +e
sys_lib="$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")"
prefix_lib="$(python -c "import sys; print(sys.prefix + '/libs')")"
include_dir="$(python -c "import sysconfig; print(sysconfig.get_path('include'))")"
export LIB="${LIB};${sys_lib};${prefix_lib}"
export INCLUDE="${INCLUDE};${include_dir}"
pytest -ra tests/torch -m "not cuda"