Skip to content

Commit

Permalink
Build tokenizer target on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
apaniukov committed Oct 31, 2023
1 parent 95aa47c commit f23e59b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .ci/azure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ jobs:
-DENABLE_PYTHON=ON ^
-DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" ^
-DCUSTOM_OPERATIONS="calculate_grid;complex_mul;fft;sparse_conv_transpose;sparse_conv" ^
$(OPENVINO_REPO_DIR)
workingDirectory: $(BUILD_DIR)
displayName: 'CMake OpenVINO Contrib'
Expand Down Expand Up @@ -161,7 +160,6 @@ jobs:
- script: |
call C:\tools\opencv\build\setup_vars_opencv4.cmd
call $(SETUPVARS)
python -m pip list
python -m pytest -k "not sparse_conv" tests\run_tests.py
workingDirectory: $(REPO_DIR)\modules\custom_operations
displayName: 'Custom user operation tests'
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ def pytest_sessionfinish(session, exitstatus) -> None:
pass_rate = 1 - session.testsfailed / session.testscollected
previous = previous_rates.get(parent, 0)

reporter = session.config.pluginmanager.get_plugin("terminalreporter")
if isclose(pass_rate, previous):
session.exitstatus = pytest.ExitCode.OK
reporter.write_line(f"New pass rate isclose to previous: {pass_rate}")
return

if pass_rate > previous:
reporter.write_line(f"New pass rate {pass_rate} is bigger then previous: {previous}")
session.exitstatus = pytest.ExitCode.OK
previous_rates[parent] = pass_rate

with open(PASS_RATES_FILE, "w") as f:
json.dump(previous_rates, f, indent=4)
else:
reporter = session.config.pluginmanager.get_plugin("terminalreporter")
reporter.write_line(f"Pass rate is lower! Current: {pass_rate}, previous: {previous}")

0 comments on commit f23e59b

Please sign in to comment.