1515# Declare default permissions as read only.
1616permissions : read-all
1717
18+ concurrency :
19+ group : ${{ github.workflow }}-PreMerge-${{ github.event.pull_request.number || github.ref }}
20+ cancel-in-progress : true
21+
1822jobs :
1923 Code-Quality-Checks :
20- # This is what will cancel the job concurrency
21- concurrency :
22- group : ${{ github.workflow }}-Linting-${{ github.event.pull_request.number || github.ref }}
23- cancel-in-progress : true
2424 runs-on : ubuntu-20.04
2525 steps :
2626 - name : Checkout repository
4646 - python-version : " 3.9"
4747 tox-env : " py39"
4848 name : Unit-Test-with-Python${{ matrix.python-version }}
49- # This is what will cancel the job concurrency
50- concurrency :
51- group : ${{ github.workflow }}-Unit-${{ github.event.pull_request.number || github.ref }}-${{ matrix.tox-env }}
52- cancel-in-progress : true
53- uses : ./.github/workflows/run_tests_in_tox.yml
49+ uses : ./.github/workflows/run_tests_in_tox_custom.yml
5450 with :
5551 python-version : ${{ matrix.python-version }}
5652 toxenv-pyver : ${{ matrix.tox-env }}
@@ -61,10 +57,10 @@ jobs:
6157 artifact-prefix : " unit-test-results"
6258 Coverage-Test :
6359 needs : Code-Quality-Checks
64- concurrency :
65- group : ${{ github.workflow }}-Coverage-${{ github.event.pull_request.number || github.ref }}}
66- cancel-in-progress : true
67- runs-on : [self-hosted, linux, x64, dev]
60+ runs-on : [otx-gpu-a10g-1]
61+ container :
62+ image : 219678651685.dkr.ecr.eu-west-1.amazonaws.com/ote-ci:11.7.1.2-devel-ubuntu20.04
63+ options : " --runtime=nvidia --env-file=/home/runner/.nvidia.env --ipc=host "
6864 steps :
6965 - name : Checkout repository
7066 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -126,11 +122,7 @@ jobs:
126122 - task : " visprompt"
127123 test_dir : " tests/integration/cli/visual_prompting"
128124 name : Integration-Test-py310-${{ matrix.task }}
129- # This is what will cancel the job concurrency
130- concurrency :
131- group : ${{ github.workflow }}-Integration-${{ github.event.pull_request.number || github.ref }}-${{ matrix.task }}
132- cancel-in-progress : true
133- uses : ./.github/workflows/run_tests_in_tox.yml
125+ uses : ./.github/workflows/run_tests_in_tox_custom.yml
134126 with :
135127 python-version : " 3.10"
136128 toxenv-pyver : " py310"
0 commit comments