Skip to content

Commit

Permalink
Report codecover of nightly CI (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 committed Dec 22, 2021
1 parent 62c0676 commit ed4a82b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/gae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,11 @@ jobs:
source ${GRAPHSCOPE_HOME}/conf/grape_jvm_opts
cd ${GITHUB_WORKSPACE}/python
python3 -m pytest --exitfirst -s -v graphscope/tests/unittest/test_java_app.py
python3 -m pytest --cov=graphscope --cov-config=.coveragerc --cov-report=xml \
--cov-report=term --exitfirst -s -v graphscope/tests/unittest/test_java_app.py
- name: Upload Coverage
uses: codecov/codecov-action@v2
with:
file: ./python/coverage.xml
fail_ci_if_error: true
9 changes: 8 additions & 1 deletion .github/workflows/networkx-forward-algo-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@ jobs:
run: |
python3 -m pip install pytest-cov networkx==2.5
cd ${GITHUB_WORKSPACE}/python
python3 -m pytest -s -v -m "not slow" graphscope/nx/algorithms/tests/forward
python3 -m pytest --cov=graphscope --cov-config=.coveragerc --cov-report=xml \
--cov-report=term -s -v -m "not slow" graphscope/nx/algorithms/tests/forward
- name: Upload Coverage
uses: codecov/codecov-action@v2
with:
file: ./python/coverage.xml
fail_ci_if_error: true
6 changes: 6 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
# run test
make unittest
- name: Upload Coverage
uses: codecov/codecov-action@v2
with:
file: ./python/coverage.xml
fail_ci_if_error: true

build-gss-image:
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
runs-on: ubuntu-20.04
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,16 @@ test: unittest minitest k8stest
.PHONY: unittest
unittest:
cd $(WORKING_DIR)/python && \
python3 -m pytest -s -v ./graphscope/tests/unittest
python3 -m pytest --cov=graphscope --cov-config=.coveragerc --cov-report=xml --cov-report=term -s -v ./graphscope/tests/unittest

.PHONY: minitest
minitest:
cd $(WORKING_DIR)/python && \
pip3 install tensorflow==2.5.2 && \
python3 -m pytest -s -v ./graphscope/tests/minitest
python3 -m pytest --cov=graphscope --cov-config=.coveragerc --cov-report=xml --cov-report=term -s -v ./graphscope/tests/minitest

.PHONY: k8stest
k8stest:
cd $(WORKING_DIR)/python && \
pip3 install tensorflow==2.5.2 && \
python3 -m pytest -s -v ./graphscope/tests/kubernetes
python3 -m pytest --cov=graphscope --cov-config=.coveragerc --cov-report=xml --cov-report=term -s -v ./graphscope/tests/kubernetes

0 comments on commit ed4a82b

Please sign in to comment.