Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/qlty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Qlty

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read
id-token: write

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install .[testing]

- name: Run tests with coverage
run: pytest --cov-report term-missing --cov-report xml

- name: Upload coverage to Qlty
if: always() && hashFiles('coverage.xml') != ''
uses: qltysh/qlty-action/coverage@v2
with:
oidc: true
files: coverage.xml
add-prefix: pymetrics/
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ PyMetrics - Versatile Metrics Collection for Python
.. image:: https://img.shields.io/pypi/l/pymetrics.svg
:target: https://pypi.python.org/pypi/pymetrics

.. image:: https://api.travis-ci.org/eventbrite/pymetrics.svg
:target: https://travis-ci.org/eventbrite/pymetrics
.. image:: https://qlty.sh/gh/eventbrite/projects/pymetrics/maintainability.svg
:target: https://qlty.sh/gh/eventbrite/projects/pymetrics

.. image:: https://qlty.sh/gh/eventbrite/projects/pymetrics/coverage.svg
:target: https://qlty.sh/gh/eventbrite/projects/pymetrics

.. image:: https://img.shields.io/pypi/v/pymetrics.svg
:target: https://pypi.python.org/pypi/pymetrics
Expand Down