Unverified 提交 f375a0e9 authored 作者: Oriol Abril-Pla's avatar Oriol Abril-Pla 提交者: GitHub

Change coverage to codecov (#124)

上级 7f1537c7
...@@ -140,7 +140,7 @@ jobs: ...@@ -140,7 +140,7 @@ jobs:
if [[ $FAST_COMPILE == "1" ]]; then export THEANO_FLAGS=$THEANO_FLAGS,mode=FAST_COMPILE; fi if [[ $FAST_COMPILE == "1" ]]; then export THEANO_FLAGS=$THEANO_FLAGS,mode=FAST_COMPILE; fi
if [[ $FLOAT32 == "1" ]]; then export THEANO_FLAGS=$THEANO_FLAGS,floatX=float32; fi if [[ $FLOAT32 == "1" ]]; then export THEANO_FLAGS=$THEANO_FLAGS,floatX=float32; fi
export THEANO_FLAGS=$THEANO_FLAGS,warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc.cxxflags=-pipe export THEANO_FLAGS=$THEANO_FLAGS,warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc.cxxflags=-pipe
python -m pytest -x -r A --verbose --runslow --cov=theano/ --cov-append --no-cov-on-fail $PART python -m pytest -x -r A --verbose --runslow --cov=theano/ --cov-report=xml --no-cov-on-fail $PART
env: env:
MKL_THREADING_LAYER: GNU MKL_THREADING_LAYER: GNU
MKL_NUM_THREADS: 1 MKL_NUM_THREADS: 1
...@@ -149,33 +149,11 @@ jobs: ...@@ -149,33 +149,11 @@ jobs:
FAST_COMPILE: ${{ matrix.fast-compile }} FAST_COMPILE: ${{ matrix.fast-compile }}
FLOAT32: ${{ matrix.float32 }} FLOAT32: ${{ matrix.float32 }}
- uses: actions/upload-artifact@v2 - name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with: with:
name: ${{ steps.unique-id.outputs.id }} fail_ci_if_error: true
path: .coverage name: "py${{ matrix.python-version }}: ${{ matrix.part }}"
coverage:
name: "Merge and upload coverage"
needs: test
runs-on: ubuntu-latest
if: ${{ needs.test.result == 'success' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Download all artifacts
uses: actions/download-artifact@v2
- name: Merge and upload coverage
run: |
python -m pip install coveralls
find . -name \.coverage -exec coverage combine --append {} \;
coveralls
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
combine: combine:
if: ${{ always() }} if: ${{ always() }}
......
...@@ -40,4 +40,5 @@ Theano.suo ...@@ -40,4 +40,5 @@ Theano.suo
.ropeproject .ropeproject
core core
.idea .idea
/htmlcov/ .mypy_cache/
/htmlcov/
\ No newline at end of file
codecov:
require_ci_to_pass: true
comment:
behavior: default
branches:
- "master"
coverage:
status:
project:
default:
target: auto
threshold: 0%
patch:
default:
target: 100%
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论