@@ -27,15 +27,12 @@ jobs:
2727 - name : Checkout repository
2828 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929 - name : Set up Python
30- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3 .0
30+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6 .0
3131 with :
3232 python-version : " 3.10"
3333 - name : Install tox
3434 run : |
35- python -m pip install --require-hashes --no-deps -r .ci/requirements.txt
36- pip-compile --generate-hashes --output-file=/tmp/requirements.txt --extra=ci_tox pyproject.toml
37- python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt
38- rm /tmp/requirements.txt
35+ pip install '.[ci_tox]'
3936 - name : Code quality checks
4037 run : tox -vv -e pre-commit
4138 Unit-Test :
6057 python-version : ${{ matrix.python-version }}
6158 - name : Install tox
6259 run : |
63- python -m pip install --require-hashes --no-deps -r .ci/requirements.txt
64- pip-compile --generate-hashes --output-file=/tmp/requirements.txt --extra=ci_tox pyproject.toml
65- python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt
66- rm /tmp/requirements.txt
60+ pip install '.[ci_tox]'
6761 - name : Run unit test
6862 run : tox -vv -e unit-test-${{ matrix.tox-env }}
6963 - name : Upload coverage reports to Codecov
@@ -84,87 +78,25 @@ jobs:
8478 curl -Os https://uploader.codecov.io/latest/linux/codecov
8579 chmod +x codecov
8680 ./codecov -t ${{ secrets.CODECOV_TOKEN }} --sha $COMMIT_ID -U $HTTP_PROXY -f .tox/coverage_unit-test-${{ matrix.tox-env }}.xml -F ${{ matrix.tox-env }}
87- Intense-Unit-Test :
88- runs-on : [otx-gpu-a10g-1]
89- container :
90- image : " ubuntu:24.04"
91- needs : Code-Quality-Checks
92- timeout-minutes : 120
93- strategy :
94- fail-fast : false
95- matrix :
96- include :
97- - python-version : " 3.10"
98- tox-env : " py310"
99- - python-version : " 3.11"
100- tox-env : " py311"
101- name : Intense-Unit-Test-with-Python${{ matrix.python-version }}
102- steps :
103- - name : Install dependencies
104- run : apt-get update && apt-get install -y libsqlite3-0 libsqlite3-dev libgl1 libglib2.0-0
105- - name : Checkout repository
106- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
107- - name : Install Python
108- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
109- with :
110- python-version : ${{ matrix.python-version }}
111- - name : Install tox
112- run : |
113- python -m pip install --require-hashes --no-deps -r .ci/requirements.txt
114- pip-compile --generate-hashes --output-file=/tmp/requirements.txt --extra=ci_tox pyproject.toml
115- python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt
116- rm /tmp/requirements.txt
117- - name : Run unit test
118- run : tox -vv -e intense-unit-test-${{ matrix.tox-env }}
11981 Integration-Test :
12082 if : |
12183 github.event.pull_request.draft == false &&
12284 !(startsWith(github.event.pull_request.title, '[WIP]'))
123- runs-on : [otx-gpu-a10g-1 ]
85+ runs-on : [self-hosted, linux, x64, dev, dmount ]
12486 needs : Unit-Test
125- container :
126- image : 219678651685.dkr.ecr.eu-west-1.amazonaws.com/ote-ci:11.7.1.2-devel-ubuntu20.04
127- options : " --runtime=nvidia --env-file=/home/runner/.nvidia.env --ipc=host"
12887 strategy :
12988 fail-fast : false
13089 matrix :
13190 include :
132- - task : " multi_cls_classification"
133- - task : " multi_label_classification"
134- - task : " hlabel_classification"
135- - task : " visual_prompting"
91+ - task : " multi_class_cls"
92+ - task : " multi_label_cls"
93+ - task : " h_label_cls"
13694 - task : " anomaly"
13795 - task : " keypoint_detection"
138- name : Integration-Test-${{ matrix.task }}-py310
139- steps :
140- - name : Checkout repository
141- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
142- - name : Install Python
143- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
144- with :
145- python-version : " 3.10"
146- - name : Install tox
147- run : |
148- python -m pip install --require-hashes --no-deps -r .ci/requirements.txt
149- pip-compile --generate-hashes --output-file=/tmp/requirements.txt --extra=ci_tox pyproject.toml
150- python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt
151- rm /tmp/requirements.txt
152- - name : Run Integration Test
153- run : tox -vv -e integration-test-${{ matrix.task }}
154- Integration-Test-Large :
155- if : |
156- github.event.pull_request.draft == false &&
157- !(startsWith(github.event.pull_request.title, '[WIP]'))
158- runs-on : [self-hosted, linux, x64, dev, dmount]
159- needs : Unit-Test
160- strategy :
161- fail-fast : false
162- matrix :
163- include :
16496 - task : " detection"
16597 - task : " instance_segmentation"
16698 - task : " semantic_segmentation"
167- name : Integration-Test-Large- ${{ matrix.task }}-py310
99+ name : Integration-Test-${{ matrix.task }}-py310
168100 steps :
169101 - name : Checkout repository
170102 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -174,9 +106,6 @@ jobs:
174106 python-version : " 3.10"
175107 - name : Install tox
176108 run : |
177- python -m pip install --require-hashes --no-deps -r .ci/requirements.txt
178- pip-compile --generate-hashes --output-file=/tmp/requirements.txt --extra=ci_tox pyproject.toml
179- python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt
180- rm /tmp/requirements.txt
109+ pip install '.[ci_tox]'
181110 - name : Run Integration Test
182111 run : tox -vv -e integration-test-${{ matrix.task }}
0 commit comments