Skip to content

Use qlty.sh instead of cc-test-reporter #284

Use qlty.sh instead of cc-test-reporter

Use qlty.sh instead of cc-test-reporter #284

Workflow file for this run

---
name: Test
on:
- push
jobs:
test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- 'pypy-3.9'
- 'pypy-3.10'
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: Install lcov
run: sudo apt-get update && sudo apt-get install -y lcov
- uses: qltysh/qlty-action/install@v2
- run: python setup.py build_ext --inplace
env:
CFLAGS: --coverage
- run: python -m unittest discover --verbose
- name: Format coverage
run: |
lcov --capture --directory . --output-file coverage.info --no-external
qlty coverage transform coverage.info --output "coverage.${{ matrix.python-version }}.jsonl"
- uses: actions/upload-artifact@v4
with:
name: coverages-${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}.jsonl
upload-coverage:
runs-on: ubuntu-24.04
needs: test
steps:
- uses: actions/download-artifact@v5
with:
pattern: coverages-*
merge-multiple: true
- uses: qltysh/qlty-action/coverage@v2
with:
oidc: true
files: coverage.*.jsonl
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: clang-format
run: clang-format --Werror --dry-run arc4.c
- run: pip install . flake8 mypy pygments restructuredtext_lint
- run: flake8
- run: stubtest arc4
- run: rst-lint README.rst