Repository: cobbler/cobbler (language: python)

Issue:
Switch coverage to Codacy
### Is your feature request related to a problem?

As a contributor to Cobbler  
I want to use as little different tools as possible  
so that I can focus more on contributing.

### Provide a detailed description of the proposed feature

Currently, we use two tools that have an overlap in features. Since for our use-case, there is no big difference in functionality, I want to get rid of the second tool to open.

### Alternatives you've considered

- https://sentry.io/welcome/ - Possible
- https://codeclimate.com/quality - Possible
- https://www.sonarsource.com/products/sonarcloud/ - Not free and thus a no-go for us atm.

### Additional information

The plan for this is to merge #3364 and after both tools run in parallel for a certain while to remove codecov and then move the other projects over to Codacy.

CC @tiltingpenguin for `libcobblersignatures`



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 2fd9710214..df6d7b6b4f 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -29,8 +29,8 @@ jobs:
         uses: ludeeus/action-shellcheck@master
         with:
           scandir: './scripts'
-  linter_name:
-    name: runner/black formatter
+  python_black:
+    name: black formatter
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2


Test patch:
diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml
index 4740bf6a82..38004b6b53 100644
--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -22,6 +22,12 @@ jobs:
       - name: Run the Tests inside the Docker Container
         shell: 'script -q -e -c "bash {0}"'
         run: |
-          docker exec -u 0 -it cobbler bash -c "pytest --cov=./cobbler --benchmark-skip && git config --global --add safe.directory /code && codecov --token=1064928c-6477-41be-9ac2-7ce5e6d1fd8b --commit=${GITHUB_SHA}"
+          docker exec -u 0 -it cobbler bash -c "pytest --cov=./cobbler --benchmark-skip && git config --global --add safe.directory /code && coverage xml && codecov --token=1064928c-6477-41be-9ac2-7ce5e6d1fd8b --commit=${GITHUB_SHA}"
       - name: Stop and remove the container
         run: docker stop cobbler && docker rm cobbler
+      # https://github.com/codacy/codacy-coverage-reporter-action
+      - name: Run codacy-coverage-reporter
+        uses: codacy/codacy-coverage-reporter-action@v1
+        with:
+          project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
+          coverage-reports: coverage.xml