-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move intg tests to merge-check wf and run on a10g (#3711)
* move intg tests to merge-check wf and run on a10g * add merge_group event * add merge_group event to pr checks * divide classification intg tests * update tox.ini
- Loading branch information
Showing
4 changed files
with
59 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Merge Checks | ||
|
||
on: | ||
merge_group: | ||
branches: | ||
- develop | ||
workflow_dispatch: # run on request (no need for PR) | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
Integration-Test: | ||
runs-on: [otx-gpu-a10g-1] | ||
container: | ||
image: 219678651685.dkr.ecr.eu-west-1.amazonaws.com/ote-ci:11.7.1.2-devel-ubuntu20.04 | ||
options: "--runtime=nvidia --env-file=/home/runner/.nvidia.env --ipc=host" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- task: "action" | ||
- task: "multi_classification" | ||
- task: "hlabel_classification" | ||
- task: "detection" | ||
- task: "instance_segmentation" | ||
- task: "semantic_segmentation" | ||
- task: "visual_prompting" | ||
- task: "anomaly" | ||
name: Integration-Test-${{ matrix.task }}-py310 | ||
# This is what will cancel the job concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-Integration-${{ github.event.pull_request.number || github.ref }}-${{ matrix.task }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Install Python | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install tox | ||
run: | | ||
python -m pip install --require-hashes --no-deps -r .ci/requirements.txt | ||
pip-compile --generate-hashes --output-file=/tmp/requirements.txt --extra=ci_tox pyproject.toml | ||
python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt | ||
rm /tmp/requirements.txt | ||
- name: Run Integration Test | ||
run: tox -vv -e integration-test-${{ matrix.task }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters