From bd048b3093fbe798a63df9b4544dc0d67653cc73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com>
Date: Fri, 5 Apr 2024 11:13:21 +0200
Subject: [PATCH] fix codeclimate

---
 .github/workflows/main.yml | 16 ++++++++++++++--
 README.md                  |  4 ++--
 docs/changelog.rst         |  5 +++++
 3 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 89f7fa5..e5622e0 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -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
diff --git a/README.md b/README.md
index 5b29951..f30f341 100644
--- a/README.md
+++ b/README.md
@@ -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)
@@ -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
 -----
diff --git a/docs/changelog.rst b/docs/changelog.rst
index 1c46f06..0bd8e5e 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -1,6 +1,11 @@
 Changelog
 =========
 
+v1.3
+----
+
+* switched to GitHub Actions for CI/CD
+
 v2.11
 -----
 
-- 
GitLab