Skip to content

Commit 976c927

Browse files
authored
Fix github actions (#115)
* Fix typo * Fix github actions
1 parent 4e4a27e commit 976c927

18 files changed

+98
-37
lines changed

.github/workflows/run-individual-script-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
for file in ${{ steps.getfile.outputs.files }}; do
3333
echo $file
3434
done
35-
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
35+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
3636
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3737
DOCKER_CM_REPO=${{ github.event.pull_request.head.repo.html_url }} DOCKER_CM_REPO_BRANCH=${{ github.event.pull_request.head.ref }} TEST_INPUT_INDEX=${{ matrix.test-input-index }} python3 script/test-cm-core/src/script/process_tests.py ${{ steps.getfile.outputs.files }}

.github/workflows/test-cm-based-submission-generation.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,16 @@ jobs:
4848
uses: actions/setup-python@v3
4949
with:
5050
python-version: ${{ matrix.python-version }}
51-
- name: Install dependencies
51+
- name: Install cm4mlops on Windows
52+
if: matrix.os == 'windows-latest'
53+
run: |
54+
$env:CM_PULL_DEFAULT_MLOPS_REPO = "no"; pip install cm4mlops
55+
- name: Install dependencies on Unix Platforms
56+
if: matrix.os != 'windows-latest'
57+
run: |
58+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
59+
- name: Pull MLOps repository
5260
run: |
53-
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
5461
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
5562
- name: Pull repo where test cases are uploaded
5663
run: |

.github/workflows/test-cm-script-features.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,16 @@ jobs:
3030
if: matrix.os == 'windows-latest'
3131
run: |
3232
git config --system core.longpaths true
33-
- name: Install dependencies
33+
- name: Install cm4mlops on Windows
34+
if: matrix.os == 'windows-latest'
35+
run: |
36+
$env:CM_PULL_DEFAULT_MLOPS_REPO = "no"; pip install cm4mlops
37+
- name: Install dependencies on Unix Platforms
38+
if: matrix.os != 'windows-latest'
39+
run: |
40+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
41+
- name: Pull MLOps repository
3442
run: |
35-
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3643
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3744
cm run script --quiet --tags=get,sys-utils-cm
3845
- name: Run test_docker on linux

.github/workflows/test-cm-tutorial-retinanet.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
- name: Install dependencies
29+
- name: Install dependencies on Unix Platforms
30+
run: |
31+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
32+
- name: Pull MLOps repository
3033
run: |
31-
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3234
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3335
cm run script --quiet --tags=get,sys-utils-cm
3436
- name: Test CM Tutorial Retinanet

.github/workflows/test-cm-tutorial-tvm-pip.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ jobs:
2727
uses: actions/setup-python@v3
2828
with:
2929
python-version: ${{ matrix.python-version }}
30-
- name: Install dependencies
30+
- name: Install dependencies on Unix Platforms
31+
run: |
32+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
33+
- name: Pull MLOps repository
3134
run: |
32-
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3335
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3436
cm run script --quiet --tags=get,sys-utils-cm
3537
- name: Test CM Tutorial TVM pip install with VirtualMachine Runtime
@@ -49,9 +51,11 @@ jobs:
4951
uses: actions/setup-python@v3
5052
with:
5153
python-version: ${{ matrix.python-version }}
52-
- name: Install dependencies
54+
- name: Install dependencies on Unix Platforms
55+
run: |
56+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
57+
- name: Pull MLOps repository
5358
run: |
54-
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
5559
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
5660
cm run script --quiet --tags=get,sys-utils-cm
5761
- name: Test CM Tutorial TVM pip install with GraphExecutor Runtime

.github/workflows/test-cm-tutorial-tvm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
uses: actions/setup-python@v3
2929
with:
3030
python-version: ${{ matrix.python-version }}
31-
- name: Install dependencies
31+
- name: Install dependencies on Unix Platforms
32+
run: |
33+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
34+
- name: Pull MLOps repository
3235
run: |
33-
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3436
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3537
cm run script --quiet --tags=get,sys-utils-cm
3638
- name: Test CM Tutorial TVM

.github/workflows/test-image-classification-onnx.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,16 @@ jobs:
3030
if: matrix.os == 'windows-latest'
3131
run: |
3232
git config --system core.longpaths true
33-
- name: Install dependencies
33+
- name: Install cm4mlops on Windows
34+
if: matrix.os == 'windows-latest'
35+
run: |
36+
$env:CM_PULL_DEFAULT_MLOPS_REPO = "no"; pip install cm4mlops
37+
- name: Install dependencies on Unix Platforms
38+
if: matrix.os != 'windows-latest'
39+
run: |
40+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
41+
- name: Pull MLOps repository
3442
run: |
35-
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3643
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3744
cm run script --quiet --tags=get,sys-utils-cm
3845
- name: Test image classification with ONNX

.github/workflows/test-mlperf-inference-abtf-poc.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,16 @@ jobs:
5151
if: matrix.os == 'windows-latest'
5252
run: |
5353
git config --system core.longpaths true
54-
- name: Install dependencies
54+
- name: Install cm4mlops on Windows
55+
if: matrix.os == 'windows-latest'
56+
run: |
57+
$env:CM_PULL_DEFAULT_MLOPS_REPO = "no"; pip install cm4mlops
58+
- name: Install dependencies on Unix Platforms
59+
if: matrix.os != 'windows-latest'
60+
run: |
61+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
62+
- name: Pull MLOps repository
5563
run: |
56-
pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
5764
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
5865
#cm pull repo mlcommons@cm4abtf --branch=poc
5966

.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,16 @@ jobs:
3535
uses: actions/setup-python@v3
3636
with:
3737
python-version: ${{ matrix.python-version }}
38-
- name: Install dependencies
38+
- name: Install cm4mlops on Windows
39+
if: matrix.os == 'windows-latest'
40+
run: |
41+
$env:CM_PULL_DEFAULT_MLOPS_REPO = "no"; pip install cm4mlops
42+
- name: Install dependencies on Unix Platforms
43+
if: matrix.os != 'windows-latest'
44+
run: |
45+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
46+
- name: Pull MLOps repository
3947
run: |
40-
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
4148
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
4249
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
4350
if: matrix.os == 'windows-latest'

.github/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,23 @@ jobs:
3232
uses: actions/setup-python@v3
3333
with:
3434
python-version: ${{ matrix.python-version }}
35-
- name: Install dependencies
35+
- name: Install cm4mlops on Windows
36+
if: matrix.os == 'windows-latest'
37+
run: |
38+
$env:CM_PULL_DEFAULT_MLOPS_REPO = "no"; pip install cm4mlops
39+
- name: Install dependencies on Unix Platforms
40+
if: matrix.os != 'windows-latest'
41+
run: |
42+
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
43+
- name: Pull MLOps repository
3644
run: |
37-
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3845
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3946
cm run script --quiet --tags=get,sys-utils-cm
4047
cm run script --quiet --tags=install,prebuilt,llvm --version=${{ matrix.llvm-version }}
4148
- name: Test MLPerf Inference MLCommons C++ ResNet50 on ${{ matrix.os }}
4249
if: matrix.os == 'windows-latest'
4350
run: |
44-
cmr "app mlperf inference mlcommons cpp" --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} --adr.loadgen.tags=_from-pip --pip_loadgen=yes -v --quiet
51+
cm run script --tags=app,mlperf,inference,mlcommons,cpp --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} --adr.loadgen.tags=_from-pip --pip_loadgen=yes -v --quiet
4552
- name: Test MLPerf Inference MLCommons C++ ResNet50 on ${{ matrix.os }}
4653
if: matrix.os != 'windows-latest'
4754
run: |

0 commit comments

Comments
 (0)