diff --git a/.github/workflows/test_accuracy.yml b/.github/workflows/test_accuracy.yml index c3e0ddd4..220530f9 100644 --- a/.github/workflows/test_accuracy.yml +++ b/.github/workflows/test_accuracy.yml @@ -9,17 +9,28 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: - test_accuracy: - runs-on: ubuntu-24.04 + test_accuracy_items: + strategy: + fail-fast: false + matrix: + os: + - "ubuntu-24.04" + - "windows-2022" + python-version: + - "3.10" + - "3.11" + - "3.12" + - "3.13" + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: persist-credentials: false - - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 - with: - python-version-file: ".python-version" - name: Install uv uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2 + with: + enable-cache: false + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | uv sync --locked --extra tests --extra-index-url https://download.pytorch.org/whl/cpu @@ -29,3 +40,14 @@ jobs: - name: Run Python Test run: | uv run pytest --data=./data tests/accuracy/test_accuracy.py + test_accuracy: + runs-on: ubuntu-latest + needs: test_accuracy_items + if: always() + steps: + - name: All tests ok + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: exit 0 + - name: Some tests failed + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 diff --git a/.github/workflows/test_precommit.yml b/.github/workflows/test_precommit.yml index 7fa2a8c4..b50ecd5a 100644 --- a/.github/workflows/test_precommit.yml +++ b/.github/workflows/test_precommit.yml @@ -10,18 +10,29 @@ concurrency: cancel-in-progress: true jobs: Python-Functional-Tests: - runs-on: ubuntu-24.04 + strategy: + fail-fast: false + matrix: + os: + - "ubuntu-24.04" + - "windows-2022" + python-version: + - "3.10" + - "3.11" + - "3.12" + - "3.13" + name: pr pre-commit test (${{ matrix.os }}, Python ${{ matrix.python-version }}) + runs-on: ${{ matrix.os }} steps: - name: CHECKOUT REPOSITORY uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: persist-credentials: false - - name: Set up Python - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 - with: - python-version-file: ".python-version" - name: Install uv uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2 + with: + enable-cache: false + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | uv sync --locked --extra tests --extra-index-url https://download.pytorch.org/whl/cpu diff --git a/README.md b/README.md index 25c2288b..1ecad6df 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,7 @@ # OpenVINO Model API -[![PyPI](https://img.shields.io/pypi/v/otx)](https://pypi.org/project/openvino-model-api) -[![Downloads](https://static.pepy.tech/personalized-badge/otx?period=total&units=international_system&left_color=grey&right_color=green&left_text=PyPI%20Downloads)](https://pepy.tech/project/openvino-model-api) - - - -[![openvino](https://img.shields.io/badge/openvino-2025.2-purple)]() - - +[![PyPI](https://img.shields.io/pypi/v/openvino-model-api)](https://pypi.org/project/openvino-model-api) +[![Downloads](https://static.pepy.tech/personalized-badge/openvino-model-api?period=total&units=international_system&left_color=grey&right_color=green&left_text=PyPI%20Downloads)](https://pepy.tech/project/openvino-model-api) [![Pre-Merge Test](https://github.com/open-edge-platform/model_api/actions/workflows/pre_commit.yml/badge.svg)](https://github.com/open-edge-platform/model_api/actions/workflows/pre_commit.yml) [![Build Docs](https://github.com/open-edge-platform/model_api/actions/workflows/docs.yml/badge.svg)](https://github.com/open-edge-platform/model_api/actions/workflows/docs.yml)