build: run tests for open-release branches on GH hosted runners
This commit is contained in:
4
.github/workflows/unit-tests-gh-hosted.yml
vendored
4
.github/workflows/unit-tests-gh-hosted.yml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
run-test:
|
||||
if: github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private'
|
||||
if: (github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == true))
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
uses: ./.github/actions/unit-tests
|
||||
|
||||
collect-and-verify:
|
||||
if: github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private'
|
||||
if: (github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == true))
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
|
||||
2
.github/workflows/unit-tests.yml
vendored
2
.github/workflows/unit-tests.yml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
jobs:
|
||||
run-tests:
|
||||
name: python-${{ matrix.python-version }},django-${{ matrix.django-version }},${{ matrix.shard_name }}
|
||||
if: github.repository == 'openedx/edx-platform' || github.repository == 'edx/edx-platform-private'
|
||||
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
|
||||
runs-on: [ edx-platform-runner ]
|
||||
strategy:
|
||||
matrix:
|
||||
|
||||
@@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
collect-and-verify:
|
||||
if: github.repository == 'openedx/edx-platform' || github.repository == 'edx/edx-platform-private'
|
||||
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
|
||||
runs-on: [ edx-platform-runner ]
|
||||
steps:
|
||||
- name: sync directory owner
|
||||
|
||||
Reference in New Issue
Block a user