Skip to content

Commit

Permalink
fix codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmaslanka committed Apr 5, 2024
1 parent 1a032dd commit bd048b3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ jobs:
sudo apt-get update
sudo apt-get install -y python3-setuptools python3-yaml python3-dev
pip install -U pip pytest coverage pytest-cov Cython setuptools
python setup.py install
- name: Before the coverage
run: |
wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
chmod ugo+x test-reporter-latest-linux-amd64
./test-reporter-latest-linux-amd64 before-build
- name: Test
run: pytest
run: coverage run setup.py test
env:
DEBUG: '1'
- name: Submit the code coverage
run: |
coverage xml
./test-reporter-latest-linux-amd64 after-build -t coverage.py
./test-reporter-latest-linux-amd64 format-coverage -t coverage.py -o codeclimate.json
./test-reporter-latest-linux-amd64 upload-coverage -i codeclimate.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MiniJSON
========

[![MiniJSON](https://github.com/github/docs/actions/workflows/main.yml/badge.svg)](https://github.com/smok-serwis/minijson)
![Passing CI](https://github.com/smok-serwis/minijson/actions/workflows/main.yml/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/20392a075de646680403/maintainability)](https://codeclimate.com/github/smok-serwis/minijson/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/20392a075de646680403/test_coverage)](https://codeclimate.com/github/smok-serwis/minijson/test_coverage)
[![Issue Count](https://codeclimate.com/github/smok-serwis/minijson/badges/issue_count.svg)](https://codeclimate.com/github/smok-serwis/minijson)
Expand All @@ -19,7 +19,7 @@ Note
====

Active development of minijson is moved to this fork.
Dronehub has no interest in further developing this awesome technology.
[Dronehub](https://github.com/Dronehub) has no interest in further developing this awesome technology.

Usage
-----
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

v1.3
----

* switched to GitHub Actions for CI/CD

v2.11
-----

Expand Down

0 comments on commit bd048b3

Please sign in to comment.