Skip to content

Commit 7b47af1

Browse files
authored
Fixed broken coverage (#1451)
* Fixed broken coverage * Updated hvd-tests.yml
1 parent b9c67b5 commit 7b47af1

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.github/workflows/hvd-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ jobs:
3636
#install other dependencies
3737
conda install pytorch torchvision cpuonly -c ${{ matrix.pytorch-channel }}
3838
pip install -r requirements-dev.txt
39-
# Fixes #1153
40-
pip install --upgrade scipy==1.4.1
4139
pip install horovod
4240
python setup.py install
4341
@@ -46,3 +44,9 @@ jobs:
4644
run: |
4745
SKIP_DISTRIB_TESTS=${{ matrix.skip-distrib-tests }} CI_PYTHON_VERSION="${{ matrix.python-version }}" bash tests/run_cpu_tests.sh
4846
47+
- name: Upload coverage to Codecov
48+
uses: codecov/codecov-action@v1
49+
with:
50+
file: ./coverage.xml
51+
flags: hvd-cpu
52+
fail_ci_if_error: true

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
run: |
6969
SKIP_DISTRIB_TESTS=${{ matrix.skip-distrib-tests }} CI_PYTHON_VERSION="${{ matrix.python-version }}" bash tests/run_cpu_tests.sh
7070
71+
- name: Upload coverage to Codecov
72+
uses: codecov/codecov-action@v1
73+
with:
74+
file: ./coverage.xml
75+
flags: cpu
76+
fail_ci_if_error: true
77+
7178
- name: Run MNIST Examples
7279
shell: bash -l {0}
7380
run: |

tests/run_cpu_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
skip_distrib_opt=(-m "")
99
fi
1010

11-
CUDA_VISIBLE_DEVICES="" py.test --tx 4*popen//python=python${CI_PYTHON_VERSION:-3.7} --cov ignite --cov-report term-missing -vvv tests "${skip_distrib_opt[@]}"
11+
CUDA_VISIBLE_DEVICES="" py.test --tx 4*popen//python=python${CI_PYTHON_VERSION:-3.7} --cov ignite --cov-report term-missing --cov-report xml -vvv tests "${skip_distrib_opt[@]}"
1212

1313
# https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02
1414
if [ "${SKIP_DISTRIB_TESTS:-0}" -eq "1" ]; then
@@ -18,4 +18,4 @@ fi
1818
export WORLD_SIZE=2
1919

2020

21-
CUDA_VISIBLE_DEVICES="" py.test --cov ignite --cov-append --cov-report term-missing --dist=each --tx $WORLD_SIZE*popen//python=python${CI_PYTHON_VERSION:-3.7} tests -m distributed -vvv
21+
CUDA_VISIBLE_DEVICES="" py.test --cov ignite --cov-append --cov-report term-missing --cov-report xml --dist=each --tx $WORLD_SIZE*popen//python=python${CI_PYTHON_VERSION:-3.7} tests -m distributed -vvv

0 commit comments

Comments
 (0)