Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit f375a0e

Browse files
Change coverage to codecov (#124)
Co-authored-by: Brandon T. Willard <971601+brandonwillard@users.noreply.github.com>
1 parent 7f1537c commit f375a0e

3 files changed

Lines changed: 25 additions & 28 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
if [[ $FAST_COMPILE == "1" ]]; then export THEANO_FLAGS=$THEANO_FLAGS,mode=FAST_COMPILE; fi
141141
if [[ $FLOAT32 == "1" ]]; then export THEANO_FLAGS=$THEANO_FLAGS,floatX=float32; fi
142142
export THEANO_FLAGS=$THEANO_FLAGS,warn.ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc.cxxflags=-pipe
143-
python -m pytest -x -r A --verbose --runslow --cov=theano/ --cov-append --no-cov-on-fail $PART
143+
python -m pytest -x -r A --verbose --runslow --cov=theano/ --cov-report=xml --no-cov-on-fail $PART
144144
env:
145145
MKL_THREADING_LAYER: GNU
146146
MKL_NUM_THREADS: 1
@@ -149,33 +149,11 @@ jobs:
149149
FAST_COMPILE: ${{ matrix.fast-compile }}
150150
FLOAT32: ${{ matrix.float32 }}
151151

152-
- uses: actions/upload-artifact@v2
152+
- name: Upload coverage to Codecov
153+
uses: codecov/codecov-action@v1
153154
with:
154-
name: ${{ steps.unique-id.outputs.id }}
155-
path: .coverage
156-
157-
coverage:
158-
name: "Merge and upload coverage"
159-
needs: test
160-
runs-on: ubuntu-latest
161-
if: ${{ needs.test.result == 'success' }}
162-
steps:
163-
- uses: actions/checkout@v2
164-
with:
165-
fetch-depth: 0
166-
- name: Set up Python
167-
uses: actions/setup-python@v1
168-
with:
169-
python-version: 3.7
170-
- name: Download all artifacts
171-
uses: actions/download-artifact@v2
172-
- name: Merge and upload coverage
173-
run: |
174-
python -m pip install coveralls
175-
find . -name \.coverage -exec coverage combine --append {} \;
176-
coveralls
177-
env:
178-
GITHUB_TOKEN: ${{ secrets.github_token }}
155+
fail_ci_if_error: true
156+
name: "py${{ matrix.python-version }}: ${{ matrix.part }}"
179157

180158
combine:
181159
if: ${{ always() }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ Theano.suo
4040
.ropeproject
4141
core
4242
.idea
43-
/htmlcov/
43+
.mypy_cache/
44+
/htmlcov/

codecov.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
codecov:
2+
require_ci_to_pass: true
3+
4+
comment:
5+
behavior: default
6+
branches:
7+
- "master"
8+
9+
coverage:
10+
status:
11+
project:
12+
default:
13+
target: auto
14+
threshold: 0%
15+
16+
patch:
17+
default:
18+
target: 100%

0 commit comments

Comments
 (0)