File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494 isaacsim-version : ${{ env.ISAACSIM_BASE_VERSION }}
9595
9696 - name : Run General Tests
97+ id : run-general-tests
9798 uses : ./.github/actions/run-tests
9899 with :
99100 test-path : " tools"
@@ -120,6 +121,12 @@ jobs:
120121 retention-days : 1
121122 compression-level : 9
122123
124+ - name : Fail on Test Failure for Fork PRs
125+ if : github.event.pull_request.head.repo.full_name != github.repository && steps.run-general-tests.outcome == 'failure'
126+ run : |
127+ echo "Tests failed for PR from fork. The test report is in the logs. Failing the job."
128+ exit 1
129+
123130 combine-results :
124131 needs : [test-isaaclab-tasks, test-general]
125132 runs-on : [self-hosted, gpu]
@@ -166,6 +173,7 @@ jobs:
166173
167174 - name : Comment on Test Results
168175 id : test-reporter
176+ if : github.event.pull_request.head.repo.full_name == github.repository
169177 uses : EnricoMi/publish-unit-test-result-action@v2
170178 with :
171179 files : " reports/combined-results.xml"
@@ -179,6 +187,7 @@ jobs:
179187 action_fail_on_inconclusive : true
180188
181189 - name : Report Test Results
190+ if : github.event.pull_request.head.repo.full_name == github.repository
182191 uses : dorny/test-reporter@v1
183192 with :
184193 name : IsaacLab Build and Test Results
You can’t perform that action at this time.
0 commit comments