From 5a46a3aa0f5759dea07c035daa2106b1d1c0b8c1 Mon Sep 17 00:00:00 2001 From: Irtaza Akram Date: Mon, 27 May 2024 12:46:33 +0500 Subject: [PATCH] fix: tests on forks --- .github/workflows/unit-tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 0b6e29b186..f80eab2bff 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -115,9 +115,8 @@ jobs: success: name: Unit tests successful if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false)) - needs: - - run-tests - runs-on: ubuntu-latest + runs-on: [ "ubuntu-20.04" ] + needs: [ run-tests ] steps: - name: Decide whether the needed jobs succeeded or failed # uses: re-actors/alls-green@v1.2.1 @@ -126,6 +125,7 @@ jobs: jobs: ${{ toJSON(needs) }} compile-warnings-report: + if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false)) runs-on: [ "ubuntu-20.04" ] needs: [ run-tests ] steps: @@ -154,8 +154,9 @@ jobs: # Combine and upload coverage reports. coverage: - needs: run-tests - runs-on: ubuntu-latest + if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false)) + runs-on: [ "ubuntu-20.04" ] + needs: [ run-tests ] strategy: matrix: python-version: