ci: Enable coveralls
This commit is contained in:
parent
c702408f99
commit
5117cbc08c
62
.github/workflows/ci-tests.yml
vendored
62
.github/workflows/ci-tests.yml
vendored
@ -12,13 +12,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- TYPE: "server"
|
- TYPE: "server"
|
||||||
JOB_NAME: "Server"
|
JOB_NAME: "Server.1"
|
||||||
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --with-coverage --ci-build-id $GITHUB_RUN_ID --app erpnext
|
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --with-coverage --ci-build-id $GITHUB_RUN_ID --app erpnext
|
||||||
- TYPE: "server"
|
- TYPE: "server"
|
||||||
JOB_NAME: "Server"
|
JOB_NAME: "Server.2"
|
||||||
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --with-coverage --ci-build-id $GITHUB_RUN_ID --app erpnext
|
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --with-coverage --ci-build-id $GITHUB_RUN_ID --app erpnext
|
||||||
- TYPE: "server"
|
- TYPE: "server"
|
||||||
JOB_NAME: "Server"
|
JOB_NAME: "Server.3"
|
||||||
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --with-coverage --ci-build-id $GITHUB_RUN_ID --app erpnext
|
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --with-coverage --ci-build-id $GITHUB_RUN_ID --app erpnext
|
||||||
- TYPE: "patch"
|
- TYPE: "patch"
|
||||||
JOB_NAME: "Patch"
|
JOB_NAME: "Patch"
|
||||||
@ -86,29 +86,37 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TYPE: ${{ matrix.TYPE }}
|
TYPE: ${{ matrix.TYPE }}
|
||||||
|
|
||||||
# - name: Coverage - Pull Request
|
- name: Upload Coverage Data
|
||||||
# if: matrix.TYPE == 'server' && github.event_name == 'pull_request'
|
if: matrix.TYPE == 'server'
|
||||||
# run: |
|
run: |
|
||||||
# cp ~/frappe-bench/sites/.coverage ${GITHUB_WORKSPACE}
|
cp ~/frappe-bench/sites/.coverage ${GITHUB_WORKSPACE}
|
||||||
# cd ${GITHUB_WORKSPACE}
|
cd ${GITHUB_WORKSPACE}
|
||||||
# pip install coveralls==2.2.0
|
pip3 install coverage==5.5
|
||||||
# pip install coverage==4.5.4
|
pip3 install coveralls==3.0.1
|
||||||
# coveralls --service=github
|
coveralls --service=github-actions
|
||||||
# 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
|
COVERALLS_FLAG_NAME: run-${{ matrix.container }}
|
||||||
|
COVERALLS_SERVICE_NAME: github-actions
|
||||||
|
COVERALLS_PARALLEL: true
|
||||||
|
|
||||||
# - name: Coverage - Push
|
coveralls:
|
||||||
# if: matrix.TYPE == 'server' && github.event_name == 'push'
|
name: Coverage Wrap Up
|
||||||
# run: |
|
needs: test
|
||||||
# cp ~/frappe-bench/sites/.coverage ${GITHUB_WORKSPACE}
|
container: python:3-slim
|
||||||
# cd ${GITHUB_WORKSPACE}
|
runs-on: ubuntu-18.04
|
||||||
# pip install coveralls==2.2.0
|
steps:
|
||||||
# pip install coverage==4.5.4
|
- name: Clone
|
||||||
# coveralls --service=github-actions
|
uses: actions/checkout@v2
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
- name: Coveralls Finished
|
||||||
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
|
run: |
|
||||||
# COVERALLS_SERVICE_NAME: github-actions
|
cd ${GITHUB_WORKSPACE}
|
||||||
|
ls -al
|
||||||
|
pip3 install coverage==5.5
|
||||||
|
pip3 install coveralls==3.0.1
|
||||||
|
coveralls --finish
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user