Skip to content

Commit b48f9bd

Browse files
committed
Use qlty.sh instead of cc-test-reporter
1 parent 3b0fd98 commit b48f9bd

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,21 @@ jobs:
1919
- uses: actions/setup-python@v5
2020
with:
2121
python-version: "${{ matrix.python-version }}"
22-
- name: Install cc-test-reporter
23-
run: |
24-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
25-
chmod +x ./cc-test-reporter
26-
- run: ./cc-test-reporter before-build
22+
- name: Install lcov
23+
run: sudo apt-get update && sudo apt-get install -y lcov
24+
- uses: qltysh/qlty-action/install@v1
2725
- run: python setup.py build_ext --inplace
2826
env:
2927
CFLAGS: --coverage
3028
- run: python -m unittest discover --verbose
3129
- name: Format coverage
3230
run: |
33-
gcov -o build/temp.* arc4.c
34-
rm -f *.h.gcov
35-
./cc-test-reporter format-coverage --input-type gcov --output 'coverage.${{ matrix.python-version }}.xml' .
31+
lcov --capture --directory . --output-file coverage.info --no-external
32+
qlty coverage transform coverage.info --output "coverage.${{ matrix.python-version }}.jsonl" .
3633
- uses: actions/upload-artifact@v4
3734
with:
3835
name: coverages-${{ matrix.python-version }}
39-
path: coverage.${{ matrix.python-version }}.xml
36+
path: coverage.${{ matrix.python-version }}.jsonl
4037
upload-coverage:
4138
runs-on: ubuntu-24.04
4239
needs: test
@@ -45,14 +42,11 @@ jobs:
4542
with:
4643
pattern: coverages-*
4744
merge-multiple: true
48-
- name: Install cc-test-reporter
49-
run: |
50-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
51-
chmod +x ./cc-test-reporter
52-
- name: Upload coverage
53-
run: ./cc-test-reporter sum-coverage --output - coverage.*.xml | ./cc-test-reporter upload-coverage --debug --input -
45+
- uses: qltysh/qlty-action/coverage@v1
46+
with:
47+
coverage-files: coverage.*.jsonl
5448
env:
55-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
49+
QLTY_API_KEY: ${{ secrets.QLTY_API_KEY }}
5650
lint:
5751
runs-on: ubuntu-latest
5852
steps:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ venv.bak/
112112
.dmypy.json
113113
dmypy.json
114114

115-
115+
# lcov
116+
coverage.info

0 commit comments

Comments
 (0)