Skip to content

Commit

Permalink
Remove codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Sep 26, 2024
1 parent ea8de98 commit e131bab
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 99 deletions.
36 changes: 0 additions & 36 deletions .codeclimate.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/scripts/normalize_coverage.py

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,57 +33,6 @@ jobs:
run: |
poetry run task test
- name: Normalize coverage
shell: bash
run: |
python .github/scripts/normalize_coverage.py
mv -v .coverage .coverage.${{ matrix.platform }}.${{ matrix.python-version }}
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage.${{ matrix.platform }}.${{ matrix.python-version }}
path: ./.coverage.${{ matrix.platform }}.${{ matrix.python-version }}
include-hidden-files: true
retention-days: 1
if-no-files-found: error

upload-coverage:
needs: [unit-tests]
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup poetry
id: poetry_setup
uses: ItsDrike/setup-poetry@v1
with:
python-version: 3.12
install-args: "--no-root --only test"

- name: Download all coverage artifacts
uses: actions/download-artifact@v4
with:
pattern: coverage.*
merge-multiple: true # support downloading multiple artifacts to same dir

# Combine all of the coverage files (for each os, python version - from matrix)
# into a single coverage file (.coverage), and produce a final (combined) coverage report.
- name: Combine coverage
run: |
coverage combine
coverage xml
coverage report
- name: Upload coverage to codeclimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: .coverage.xml:coverage.py

tests-done:
needs: [unit-tests]
if: always() && !cancelled()
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![discord chat](https://img.shields.io/discord/936788458939224094.svg?logo=Discord)](https://discord.gg/C2wX7zduxC)
![supported python versions](https://img.shields.io/pypi/pyversions/mcproto.svg)
[![current PyPI version](https://img.shields.io/pypi/v/mcproto.svg)](https://pypi.org/project/mcproto/)
[![Test Coverage](https://api.codeclimate.com/v1/badges/9464f1037f07a795de35/test_coverage)](https://codeclimate.com/github/py-mine/mcproto/test_coverage)
[![Validation](https://github.com/ItsDrike/mcproto/actions/workflows/validation.yml/badge.svg)](https://github.com/ItsDrike/mcproto/actions/workflows/validation.yml)
[![Unit tests](https://github.com/ItsDrike/mcproto/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/ItsDrike/mcproto/actions/workflows/unit-tests.yml)
[![Docs](https://img.shields.io/readthedocs/mcproto?label=Docs)](https://mcproto.readthedocs.io/)
Expand Down

0 comments on commit e131bab

Please sign in to comment.