@@ -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@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
@@ -45,14 +42,10 @@ 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 -
54- env :
55- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
45+ - uses : qltysh/qlty-action/coverage@v2
46+ with :
47+ oidc : true
48+ files : coverage.*.jsonl
5649 lint :
5750 runs-on : ubuntu-latest
5851 steps :
0 commit comments