@@ -19,40 +19,35 @@ 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@v2
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
4340 steps :
41+ - uses : actions/checkout@v5
4442 - uses : actions/download-artifact@v5
4543 with :
4644 pattern : coverages-*
4745 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 -
54- env :
55- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
46+ - uses : qltysh/qlty-action/coverage@v2
47+ with :
48+ token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
49+ files : coverage.*.jsonl
50+ skip-errors : false
5651 lint :
5752 runs-on : ubuntu-latest
5853 steps :
0 commit comments