fix: move collect-and-verify to unit-tests.yml
This commit is contained in:
committed by
Feanil Patel
parent
b3185ffe7b
commit
c22fbec6a9
20
.github/workflows/unit-tests.yml
vendored
20
.github/workflows/unit-tests.yml
vendored
@@ -107,6 +107,26 @@ jobs:
|
||||
path: reports/${{matrix.shard_name}}.coverage
|
||||
overwrite: true
|
||||
|
||||
collect-and-verify:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.11
|
||||
|
||||
- name: install system requirements
|
||||
run: |
|
||||
make ubuntu-requirements
|
||||
|
||||
- name: install requirements
|
||||
run: |
|
||||
make test-requirements
|
||||
|
||||
- name: verify unit tests count
|
||||
uses: ./.github/actions/verify-tests-count
|
||||
|
||||
# This job aggregates test results. It's the required check for branch protection.
|
||||
# https://github.com/marketplace/actions/alls-green#why
|
||||
# https://github.com/orgs/community/discussions/33579
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: verify unit tests count
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
collect-and-verify:
|
||||
runs-on: [ "ubuntu-20.04" ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: install system requirements
|
||||
run: |
|
||||
make ubuntu-requirements
|
||||
|
||||
- name: install requirements
|
||||
run: |
|
||||
make test-requirements
|
||||
|
||||
- name: verify unit tests count
|
||||
uses: ./.github/actions/verify-tests-count
|
||||
Reference in New Issue
Block a user