fix: coveralls different services for different events (#25513)
This commit is contained in:
parent
3386d4948e
commit
0dc00219e8
19
.github/workflows/ci-tests.yml
vendored
19
.github/workflows/ci-tests.yml
vendored
@ -80,8 +80,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TYPE: ${{ matrix.TYPE }}
|
TYPE: ${{ matrix.TYPE }}
|
||||||
|
|
||||||
- name: Coverage
|
- name: Coverage - Pull Request
|
||||||
if: matrix.TYPE == 'server'
|
if: matrix.TYPE == 'server' && github.event_name == 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
cp ~/frappe-bench/sites/.coverage ${GITHUB_WORKSPACE}
|
cp ~/frappe-bench/sites/.coverage ${GITHUB_WORKSPACE}
|
||||||
cd ${GITHUB_WORKSPACE}
|
cd ${GITHUB_WORKSPACE}
|
||||||
@ -91,3 +91,18 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
|
||||||
|
COVERALLS_SERVICE_NAME: github
|
||||||
|
|
||||||
|
- name: Coverage - Push
|
||||||
|
if: matrix.TYPE == 'server' && github.event_name == 'push'
|
||||||
|
run: |
|
||||||
|
cp ~/frappe-bench/sites/.coverage ${GITHUB_WORKSPACE}
|
||||||
|
cd ${GITHUB_WORKSPACE}
|
||||||
|
pip install coveralls==2.2.0
|
||||||
|
pip install coverage==4.5.4
|
||||||
|
coveralls --service=github-actions
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
|
||||||
|
COVERALLS_SERVICE_NAME: github-actions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user