From 20780981cd31b2f6ba511646ac5eca1060887a7a Mon Sep 17 00:00:00 2001 From: Alexander Poddubny Date: Mon, 18 Aug 2025 11:31:00 -0700 Subject: [PATCH] Disabled CI reporting for PRs created from the forks --- .github/workflows/build.yml | 2 ++ tools/conftest.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90a232a7ee38..d996dbe16314 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -166,6 +166,7 @@ jobs: - name: Comment on Test Results id: test-reporter + if: github.event.pull_request.head.repo.full_name == github.repository uses: EnricoMi/publish-unit-test-result-action@v2 with: files: "reports/combined-results.xml" @@ -179,6 +180,7 @@ jobs: action_fail_on_inconclusive: true - name: Report Test Results + if: github.event.pull_request.head.repo.full_name == github.repository uses: dorny/test-reporter@v1 with: name: IsaacLab Build and Test Results diff --git a/tools/conftest.py b/tools/conftest.py index b3b32a798f30..b196941f77aa 100644 --- a/tools/conftest.py +++ b/tools/conftest.py @@ -404,4 +404,6 @@ def pytest_sessionstart(session): print(summary_str) # Exit pytest after custom execution to prevent normal pytest from overwriting our report - pytest.exit("Custom test execution completed", returncode=0) + # Exit with failure code if any tests failed + exit_code = 1 if failed_tests else 0 + pytest.exit("Custom test execution completed", returncode=exit_code)