ci: Try Parallel tests
This commit is contained in:
parent
04dfaf3b2a
commit
591f3f0bb9
2
.github/helper/install.sh
vendored
2
.github/helper/install.sh
vendored
@ -12,7 +12,7 @@ sudo apt install npm
|
|||||||
|
|
||||||
pip install frappe-bench
|
pip install frappe-bench
|
||||||
|
|
||||||
git clone https://github.com/frappe/frappe --branch "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}" --depth 1
|
git clone https://github.com/surajshetty3416/frappe --branch "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}" --depth 1
|
||||||
bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench
|
bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench
|
||||||
|
|
||||||
mkdir ~/frappe-bench/sites/test_site
|
mkdir ~/frappe-bench/sites/test_site
|
||||||
|
|||||||
53
.github/workflows/ci-tests.yml
vendored
53
.github/workflows/ci-tests.yml
vendored
@ -13,7 +13,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- TYPE: "server"
|
- TYPE: "server"
|
||||||
JOB_NAME: "Server"
|
JOB_NAME: "Server"
|
||||||
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-tests --app erpnext --coverage
|
RUN_COMMAND: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --with-coverage --ci-build-id $GITHUB_RUN_ID --app erpnext
|
||||||
|
- TYPE: "server"
|
||||||
|
JOB_NAME: "Server"
|
||||||
|
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"
|
||||||
RUN_COMMAND: cd ~/frappe-bench/ && wget http://build.erpnext.com/20171108_190013_955977f8_database.sql.gz && bench --site test_site --force restore ~/frappe-bench/20171108_190013_955977f8_database.sql.gz && bench --site test_site migrate
|
RUN_COMMAND: cd ~/frappe-bench/ && wget http://build.erpnext.com/20171108_190013_955977f8_database.sql.gz && bench --site test_site --force restore ~/frappe-bench/20171108_190013_955977f8_database.sql.gz && bench --site test_site migrate
|
||||||
@ -80,29 +83,29 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TYPE: ${{ matrix.TYPE }}
|
TYPE: ${{ matrix.TYPE }}
|
||||||
|
|
||||||
- name: Coverage - Pull Request
|
# - name: Coverage - Pull Request
|
||||||
if: matrix.TYPE == 'server' && github.event_name == 'pull_request'
|
# 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}
|
||||||
pip install coveralls==2.2.0
|
# pip install coveralls==2.2.0
|
||||||
pip install coverage==4.5.4
|
# pip install coverage==4.5.4
|
||||||
coveralls --service=github
|
# coveralls --service=github
|
||||||
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_SERVICE_NAME: github
|
||||||
|
|
||||||
- name: Coverage - Push
|
# - name: Coverage - Push
|
||||||
if: matrix.TYPE == 'server' && github.event_name == 'push'
|
# if: matrix.TYPE == 'server' && github.event_name == 'push'
|
||||||
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
|
# pip install coveralls==2.2.0
|
||||||
pip install coverage==4.5.4
|
# pip install coverage==4.5.4
|
||||||
coveralls --service=github-actions
|
# 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-actions
|
# COVERALLS_SERVICE_NAME: github-actions
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user