Skip to content

Commit ac9bb2c

Browse files
committed
use qlty I guess
1 parent c0b9b95 commit ac9bb2c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/checks.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ jobs:
66
name: Static Analysis
77
runs-on: ubuntu-latest
88
container: python:3.12
9+
environment:
10+
name: pr-check
911
steps:
1012
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 2
1115
- name: install prerequisites
1216
run: |
1317
pip install .[check] .[test] black pylint
14-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 --output cc-test-reporter
15-
chmod +x cc-test-reporter
1618
- name: run black
1719
run: |
1820
black --check --diff .
@@ -21,9 +23,9 @@ jobs:
2123
pylint --fail-under 10 src
2224
pylint --fail-under 10 --disable=protected-access tests
2325
- name: run tests
24-
env:
25-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
2626
run: |
27-
./cc-test-reporter before-build
2827
pytest . --cov-report lcov
29-
./cc-test-reporter after-build --exit-code $?
28+
- uses: qltysh/qlty-action/coverage@main
29+
with:
30+
token: ${{env.QLTY_COVERAGE_TOKEN}}
31+
files: coverage.lcov

0 commit comments

Comments
 (0)