File tree 6 files changed +20
-6
lines changed
6 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ jobs:
115
115
export mnist4_cmd='CUDA_VISIBLE_DEVICES=0 python examples/mnist/mnist_save_resume_engine.py --epochs=2 --resume_from=/tmp/mnist_save_resume/checkpoint_1.pt'
116
116
docker exec -it pthd /bin/bash -c "$mnist4_cmd"
117
117
118
+ - run :
119
+ name : Codecov upload
120
+ command : |
121
+ codecov -F gpu || echo 'Codecov upload failed'
122
+
123
+
118
124
two_gpus_tests :
119
125
<< : *two_gpus
120
126
Original file line number Diff line number Diff line change 50
50
51
51
python -c "import torch_xla; print('torch xla version:', torch_xla.__version__)"
52
52
sh tests/run_tpu_tests.sh
53
+
54
+ - name : Upload coverage to Codecov
55
+ uses : codecov/codecov-action@v1
56
+ with :
57
+ file : ./coverage.xml
58
+ flags : tpu
59
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ script:
44
44
- CI_PYTHON_VERSION="$TRAVIS_PYTHON_VERSION" sh tests/run_cpu_tests.sh
45
45
46
46
after_success :
47
- - codecov
47
+ - codecov -F cpu || echo 'Codecov upload failed'
48
48
49
49
jobs :
50
50
include :
Original file line number Diff line number Diff line change 1
1
coverage :
2
- precision : 0
2
+ precision : 2
3
3
round : down
4
+ range : " 95...100"
4
5
status :
5
6
patch :
6
7
default :
@@ -11,4 +12,4 @@ coverage:
11
12
changes : false
12
13
comment : false
13
14
ignore :
14
- - " test /"
15
+ - " tests /"
Original file line number Diff line number Diff line change 8
8
9
9
set -xeu
10
10
11
- py.test -vvv tests/ -k ' on_cuda'
11
+ py.test --cov ignite --cov-report term-missing - vvv tests/ -k ' on_cuda'
12
12
13
13
export WORLD_SIZE=$ws
14
14
15
- py.test --dist=each --tx $WORLD_SIZE * popen//python=python3.7 tests -m distributed -vvv
15
+ py.test --cov ignite --cov-append --cov-report term-missing -- dist=each --tx $WORLD_SIZE * popen//python=python3.7 tests -m distributed -vvv
Original file line number Diff line number Diff line change 2
2
3
3
set -xeu
4
4
5
- py.test --cov ignite --cov-append --cov- report term-missing tests/ -vvv -m tpu
5
+ py.test --cov ignite --cov-report xml tests/ -vvv -m tpu
You can’t perform that action at this time.
0 commit comments