fix: env for runner
This commit is contained in:
committed by
Feanil Patel
parent
2506d9373a
commit
b3185ffe7b
11
.github/workflows/unit-tests.yml
vendored
11
.github/workflows/unit-tests.yml
vendored
@@ -6,13 +6,10 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
runner: "ubuntu-20.04"
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
name: ${{ matrix.shard_name }}(py=${{ matrix.python-version }},dj=${{ matrix.django-version }},mongo=${{ matrix.mongo-version }})
|
||||
runs-on: ${{ github.env.runner }}
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
python-version:
|
||||
@@ -115,7 +112,7 @@ jobs:
|
||||
# https://github.com/orgs/community/discussions/33579
|
||||
success:
|
||||
name: Unit tests successful
|
||||
runs-on: ${{ github.env.runner }}
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [ run-tests ]
|
||||
steps:
|
||||
- name: Decide whether the needed jobs succeeded or failed
|
||||
@@ -125,7 +122,7 @@ jobs:
|
||||
jobs: ${{ toJSON(needs) }}
|
||||
|
||||
compile-warnings-report:
|
||||
runs-on: ${{ github.env.runner }}
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [ run-tests ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -154,7 +151,7 @@ jobs:
|
||||
# Combine and upload coverage reports.
|
||||
coverage:
|
||||
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
|
||||
runs-on: ${{ github.env.runner }}
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [ run-tests ]
|
||||
strategy:
|
||||
matrix:
|
||||
|
||||
Reference in New Issue
Block a user