Skip to content

Commit fe4a442

Browse files
authored
Update & fix Testmo actions/logic (#230)
This PR updates and fixes Testmo actions/usage: * All Testmo actions are updated to the latest version (which, among other things, eliminates the need to install the CLI tool separately) * Fixes a "bug" in the conditional logic so that it is properly evaluated (it seems that GitHub doesn’t like mixing functions / expressions in and out of the double-curly braces in these places)
1 parent 85b473e commit fe4a442

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,9 @@ jobs:
7676
with:
7777
ref: ${{ inputs.gitref }}
7878

79-
- name: install testmo
80-
uses: neuralmagic/nm-actions/actions/[email protected]
81-
8279
- name: create testmo run
8380
id: create_testmo_run
84-
uses: neuralmagic/nm-actions/actions/[email protected]
85-
if: success()
81+
uses: neuralmagic/nm-actions/actions/[email protected]
8682
with:
8783
testmo_url: https://neuralmagic.testmo.net
8884
testmo_token: ${{ secrets.TESTMO_TEST_TOKEN }}
@@ -142,8 +138,8 @@ jobs:
142138

143139
- name: report build status to testmo
144140
id: report_build
145-
uses: neuralmagic/nm-actions/actions/testmo-run-submit-thread@v1.2.0
146-
if: (success() || failure()) && ${{ inputs.testmo_run_id != '' }}
141+
uses: neuralmagic/nm-actions/actions/testmo-run-submit-thread@v1.11.0
142+
if: success() || failure()
147143
with:
148144
testmo_url: https://neuralmagic.testmo.net
149145
testmo_token: ${{ secrets.TESTMO_TEST_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ jobs:
9090
with:
9191
venv: TEST
9292

93-
- name: install testmo
94-
uses: neuralmagic/nm-actions/actions/[email protected]
95-
9693
- name: download whl
9794
id: download
9895
uses: actions/download-artifact@v4
@@ -108,8 +105,8 @@ jobs:
108105

109106
- name: report test results
110107
id: report_test
111-
uses: neuralmagic/nm-actions/actions/testmo-run-submit-thread@v1.2.0
112-
if: (success() || failure()) && ${{ inputs.testmo_run_id != '' }}
108+
uses: neuralmagic/nm-actions/actions/testmo-run-submit-thread@v1.11.0
109+
if: (success() || failure()) && inputs.testmo_run_id != ''
113110
with:
114111
testmo_url: https://neuralmagic.testmo.net
115112
testmo_token: ${{ secrets.TESTMO_TEST_TOKEN }}

.github/workflows/upload.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,9 @@ jobs:
6969
with:
7070
python-version: 3.10.12
7171

72-
- name: install testmo
73-
uses: neuralmagic/nm-actions/actions/[email protected]
74-
7572
- name: complete testmo run
76-
uses: neuralmagic/nm-actions/actions/testmo-run-complete@v1.2.0
77-
if: (success() || failure()) && ${{ inputs.testmo_run_id != '' }}
73+
uses: neuralmagic/nm-actions/actions/testmo-run-complete@v1.11.0
74+
if: (success() || failure()) && inputs.testmo_run_id != ''
7875
with:
7976
testmo_url: https://neuralmagic.testmo.net
8077
testmo_token: ${{ secrets.TESTMO_TEST_TOKEN }}

0 commit comments

Comments
 (0)