Skip to content

Commit e6ef5fb

Browse files
authored
Add .github/worflows/accuracy_checker-pytest.yml (#3651)
* Add .github/worflows/accuracy_checker-pytest.yml * Update ci requirements * Fix deps * Make ci/requirements-ac*.txt depend on ci/requirements-openvino-dev.txt * Supress GPU tests * Install ci/requirements-ac-test.txt only * Test all branhces * Add pylint * Move import, supress ./build * cchcker->checker * Fix pylint * Set working-directory * Fix pylint
1 parent 5a50f68 commit e6ef5fb

25 files changed

+321
-531
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Accuracy checker Python3.8
2+
3+
on:
4+
pull_request:
5+
branches: '**'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-20.04
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python 3.8
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.8"
21+
- name: Pip install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install --no-deps -r ci/requirements-ac-test.txt
25+
python -m pip install --no-deps tools/accuracy_checker
26+
- name: python -m pytest tools/accuracy_checker
27+
run: |
28+
python -m pytest tools/accuracy_checker
29+
- name: Pip install and run pylint
30+
working-directory: ./tools/accuracy_checker
31+
run: |
32+
python -m pip install pylint==2.10.2
33+
PYTHONPATH=. python -m pylint --rcfile=.pylintrc `find -wholename '?*/**/*.py' -not -path "./tests/*" -not -path "./build/*"`

ci/requirements-ac-test.txt

Lines changed: 62 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,103 @@
11
# use update-requirements.py to update this file
22

3+
addict==2.4.0
4+
# via -r ci/requirements-openvino-dev.txt
35
atomicwrites==1.4.1
46
# via -r tools/accuracy_checker/requirements-test.in
5-
attrs==22.1.0
7+
attrs==22.2.0
68
# via pytest
79
certifi==2022.12.7
8-
# via requests
10+
# via
11+
# -r ci/requirements-openvino-dev.txt
12+
# requests
913
charset-normalizer==2.1.1
10-
# via requests
14+
# via
15+
# -r ci/requirements-openvino-dev.txt
16+
# requests
1117
click==8.1.3
1218
# via nltk
1319
defusedxml==0.7.1
14-
# via -r tools/accuracy_checker/requirements-core.in
20+
# via
21+
# -r ci/requirements-openvino-dev.txt
22+
# -r tools/accuracy_checker/requirements-core.in
1523
fast-ctc-decode==0.3.2
1624
# via -r tools/accuracy_checker/requirements-extra.in
17-
filelock==3.8.1
25+
filelock==3.9.0
1826
# via
1927
# huggingface-hub
2028
# transformers
2129
huggingface-hub==0.11.1
2230
# via transformers
2331
idna==3.4
24-
# via requests
32+
# via
33+
# -r ci/requirements-openvino-dev.txt
34+
# requests
2535
imagecodecs==2022.2.22 ; python_version >= "3.8"
2636
# via -r tools/accuracy_checker/requirements-extra.in
27-
imageio==2.22.4
37+
imageio==2.23.0
2838
# via scikit-image
2939
iniconfig==1.1.1
3040
# via pytest
3141
joblib==1.2.0
3242
# via
3343
# nltk
3444
# scikit-learn
35-
lmdb==1.3.0
45+
jstyleson==0.0.2
46+
# via -r ci/requirements-openvino-dev.txt
47+
lmdb==1.4.0
3648
# via -r tools/accuracy_checker/requirements-extra.in
37-
networkx==2.8 ; python_version >= "3.7"
49+
networkx==2.8.8 ; python_version > "3.6"
3850
# via
51+
# -r ci/requirements-openvino-dev.txt
3952
# -r tools/accuracy_checker/requirements-extra.in
4053
# scikit-image
4154
nibabel==4.0.2
4255
# via -r tools/accuracy_checker/requirements-extra.in
43-
nltk==3.7
56+
nltk==3.8
4457
# via -r tools/accuracy_checker/requirements-extra.in
45-
numpy==1.23.1
58+
numpy==1.23.4
4659
# via
60+
# -r ci/requirements-openvino-dev.txt
4761
# -r tools/accuracy_checker/requirements-core.in
4862
# imagecodecs
4963
# imageio
5064
# nibabel
65+
# opencv-python
66+
# openvino
5167
# pandas
5268
# parasail
5369
# pywavelets
5470
# rawpy
5571
# scikit-image
5672
# scikit-learn
5773
# scipy
74+
# shapely
5875
# tifffile
5976
# transformers
60-
openvino-telemetry==2022.1.2
61-
# via -r tools/accuracy_checker/requirements-core.in
62-
packaging==21.3
77+
opencv-python==4.7.0.68
78+
# via -r ci/requirements-openvino-dev.txt
79+
openvino==2022.3.0
80+
# via -r ci/requirements-openvino-dev.txt
81+
openvino-telemetry==2022.3.0
82+
# via
83+
# -r ci/requirements-openvino-dev.txt
84+
# -r tools/accuracy_checker/requirements-core.in
85+
packaging==22.0
6386
# via
6487
# huggingface-hub
6588
# nibabel
6689
# pytest
6790
# scikit-image
6891
# transformers
6992
pandas==1.3.5
70-
# via -r tools/accuracy_checker/requirements-extra.in
93+
# via
94+
# -r ci/requirements-openvino-dev.txt
95+
# -r tools/accuracy_checker/requirements-extra.in
7196
parasail==1.3.3 ; platform_system != "Windows"
7297
# via -r tools/accuracy_checker/requirements-extra.in
7398
pillow==9.3.0
7499
# via
100+
# -r ci/requirements-openvino-dev.txt
75101
# -r tools/accuracy_checker/requirements-core.in
76102
# imageio
77103
# scikit-image
@@ -85,22 +111,25 @@ pyclipper==1.3.0.post4
85111
# via -r tools/accuracy_checker/requirements-extra.in
86112
pydicom==2.3.1
87113
# via -r tools/accuracy_checker/requirements-extra.in
88-
pyparsing==3.0.9
89-
# via packaging
90114
pytest==7.0.1 ; python_version < "3.10"
91115
# via
92116
# -r tools/accuracy_checker/requirements-test.in
93117
# pytest-mock
94118
pytest-mock==2.0.0
95119
# via -r tools/accuracy_checker/requirements-test.in
96120
python-dateutil==2.8.2
97-
# via pandas
98-
pytz==2022.6
99-
# via pandas
121+
# via
122+
# -r ci/requirements-openvino-dev.txt
123+
# pandas
124+
pytz==2022.7
125+
# via
126+
# -r ci/requirements-openvino-dev.txt
127+
# pandas
100128
pywavelets==1.4.1
101129
# via scikit-image
102130
pyyaml==6.0
103131
# via
132+
# -r ci/requirements-openvino-dev.txt
104133
# -r tools/accuracy_checker/requirements-core.in
105134
# huggingface-hub
106135
# transformers
@@ -112,24 +141,30 @@ regex==2022.10.31
112141
# transformers
113142
requests==2.28.1
114143
# via
144+
# -r ci/requirements-openvino-dev.txt
115145
# huggingface-hub
116146
# openvino-telemetry
117147
# transformers
118148
scikit-image==0.19.3 ; python_version >= "3.7"
119149
# via -r tools/accuracy_checker/requirements-extra.in
120150
scikit-learn==0.24.2
121151
# via -r tools/accuracy_checker/requirements-extra.in
122-
scipy==1.8.0
152+
scipy==1.9.3 ; python_version >= "3.8"
123153
# via
154+
# -r ci/requirements-openvino-dev.txt
124155
# -r tools/accuracy_checker/requirements-extra.in
125156
# scikit-image
126157
# scikit-learn
127158
sentencepiece==0.1.97
128159
# via -r tools/accuracy_checker/requirements-extra.in
129-
shapely==1.8.5.post1
160+
shapely==2.0.0
130161
# via -r tools/accuracy_checker/requirements-extra.in
131162
six==1.16.0
132-
# via python-dateutil
163+
# via
164+
# -r ci/requirements-openvino-dev.txt
165+
# python-dateutil
166+
texttable==1.6.7
167+
# via -r ci/requirements-openvino-dev.txt
133168
threadpoolctl==3.1.0
134169
# via scikit-learn
135170
tifffile==2022.10.10
@@ -142,6 +177,7 @@ tomli==2.0.1
142177
# via pytest
143178
tqdm==4.64.1
144179
# via
180+
# -r ci/requirements-openvino-dev.txt
145181
# -r tools/accuracy_checker/requirements-extra.in
146182
# huggingface-hub
147183
# nltk
@@ -151,7 +187,9 @@ transformers==4.25.1 ; python_version >= "3.7"
151187
typing-extensions==4.4.0
152188
# via huggingface-hub
153189
urllib3==1.26.13
154-
# via requests
190+
# via
191+
# -r ci/requirements-openvino-dev.txt
192+
# requests
155193

156194
# The following packages are considered to be unsafe in a requirements file:
157195
# setuptools

0 commit comments

Comments
 (0)