Skip to content

Commit 61e6ddf

Browse files
committed
Migrate away from codecov pypi packgage
1 parent 3bc38f8 commit 61e6ddf

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ jobs:
4444
run: python3 -m pip install -r python/test_requirements.txt
4545
- name: Run tests
4646
run: python3 run_tests.py --quiet python/ycm/tests
47+
- name: summarise coverage
48+
run: coverage xml
4749
- name: Upload coverage data
48-
run: codecov --name "${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.python-arch }}"
50+
uses: codecov/codecov-action@v3
51+
with:
52+
name: "${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.python-arch }}"
4953

5054
vim-tests:
5155
strategy:
@@ -80,5 +84,9 @@ jobs:
8084
- name: Run tests in new vim
8185
if: matrix.vim == 'new'
8286
run: ./test/run_vim_tests
87+
- name: Combine and summarise coverage
88+
run: coverage combine && coverage xml
8389
- name: Upload coverage data
84-
run: codecov --name "vim-tests-${{ matrix.vim }}"
90+
uses: codecov/codecov-action@v3
91+
with:
92+
name: "vim-tests-${{ matrix.vim }}"

python/test_requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ flake8 >= 3.0.0
22
flake8-comprehensions >= 1.4.1
33
flake8-ycm >= 0.1.0
44
PyHamcrest >= 1.10.1
5-
codecov >= 2.0.5
65
coverage <5.0
76
click <8.0.0
87
covimerage >= 0.2.0

run_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ def UnittestTests( parsed_args, extra_unittest_args ):
8686
unittest_args.append( test_directory )
8787

8888
if parsed_args.coverage:
89-
executable = [ sys.executable, '-We', '-m', 'coverage', 'run' ]
89+
executable = [ sys.executable,
90+
'-m',
91+
'coverage',
92+
'run' ]
9093
else:
9194
executable = [ sys.executable, '-We' ]
9295

0 commit comments

Comments
 (0)