Remove coveralls integration (#7099)

This commit is contained in:
Oliver 2024-04-23 08:42:31 +10:00 committed by GitHub
parent a8e560a482
commit 8f2ef39282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 3 additions and 54 deletions

View File

@ -290,16 +290,6 @@ jobs:
run: python3 .github/scripts/check_migration_files.py run: python3 .github/scripts/check_migration_files.py
- name: Coverage Tests - name: Coverage Tests
run: invoke test --coverage run: invoke test --coverage
- name: Upload Coverage Report to Coveralls
if: always()
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # pin@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: backend
file: coverage.xml
git-commit: ${{ github.sha }}
git-branch: ${{ github.ref }}
parallel: true
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@v4.3.0 uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@v4.3.0
if: always() if: always()
@ -432,14 +422,6 @@ jobs:
update: true update: true
- name: Run Tests - name: Run Tests
run: invoke test --migrations --report --coverage run: invoke test --migrations --report --coverage
- name: Upload Coverage Report to Coveralls
if: always()
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # pin@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: migrations
git-commit: ${{ github.sha }}
git-branch: ${{ github.ref }}
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@v4.3.0 uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # pin@v4.3.0
if: always() if: always()
@ -576,19 +558,3 @@ jobs:
with: with:
name: frontend-build name: frontend-build
path: src/backend/InvenTree/web/static/web path: src/backend/InvenTree/web/static/web
finish_coverage:
name: Finish Coverage
runs-on: ubuntu-20.04
needs: ["platform_ui", "coverage", "migration-tests", "paths-filter"]
if: (needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.frontend == 'true' || needs.paths-filter.outputs.force == 'true') && (needs.platform_ui.result == 'success' || needs.coverage.result == 'success' || needs.migration-tests.result == 'success')
steps:
- name: Finish coverage reporting
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # pin@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
carryforward: "pui,backend,migrations"
parallel-finished: true
git-commit: ${{ github.sha }}
git-branch: ${{ github.ref }}

View File

@ -13,7 +13,6 @@
[![Netlify Status](https://api.netlify.com/api/v1/badges/9bbb2101-0a4d-41e7-ad56-b63fb6053094/deploy-status)](https://app.netlify.com/sites/inventree/deploys) [![Netlify Status](https://api.netlify.com/api/v1/badges/9bbb2101-0a4d-41e7-ad56-b63fb6053094/deploy-status)](https://app.netlify.com/sites/inventree/deploys)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=inventree_InvenTree&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=inventree_InvenTree) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=inventree_InvenTree&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=inventree_InvenTree)
[![Coveralls](https://img.shields.io/coveralls/github/inventree/InvenTree)](https://coveralls.io/github/inventree/InvenTree)
[![codecov](https://codecov.io/gh/inventree/InvenTree/graph/badge.svg?token=9DZRGUUV7B)](https://codecov.io/gh/inventree/InvenTree) [![codecov](https://codecov.io/gh/inventree/InvenTree/graph/badge.svg?token=9DZRGUUV7B)](https://codecov.io/gh/inventree/InvenTree)
[![Crowdin](https://badges.crowdin.net/inventree/localized.svg)](https://crowdin.com/project/inventree) [![Crowdin](https://badges.crowdin.net/inventree/localized.svg)](https://crowdin.com/project/inventree)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/inventree/inventree) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/inventree/inventree)
@ -95,7 +94,7 @@ InvenTree is designed to be **extensible**, and provides multiple options for **
<ul> <ul>
<li><a href="https://hub.docker.com/r/inventree/inventree">Docker</a></li> <li><a href="https://hub.docker.com/r/inventree/inventree">Docker</a></li>
<li><a href="https://crowdin.com/project/inventree">Crowdin</a></li> <li><a href="https://crowdin.com/project/inventree">Crowdin</a></li>
<li><a href="https://coveralls.io/github/inventree/InvenTree">Coveralls</a></li> <li><a href="https://app.codecov.io/gh/inventree/InvenTree">Codecov</a></li>
<li><a href="https://app.deepsource.com/gh/inventree/InvenTree">DeepSource</a></li> <li><a href="https://app.deepsource.com/gh/inventree/InvenTree">DeepSource</a></li>
<li><a href="https://packager.io/gh/inventree/InvenTree">Packager.io</a></li> <li><a href="https://packager.io/gh/inventree/InvenTree">Packager.io</a></li>
</ul> </ul>

View File

@ -39,7 +39,6 @@ InvenTree relies on the following Python libraries:
| [flake8](https://pypi.org/project/flake8/) | MIT | style checking | | [flake8](https://pypi.org/project/flake8/) | MIT | style checking |
| [pep8-naming](https://pypi.org/project/pep8-naming/) | Expat | name checking | | [pep8-naming](https://pypi.org/project/pep8-naming/) | Expat | name checking |
| [coverage](https://pypi.org/project/coverage/) | Apache-2.0 | coverage checking | | [coverage](https://pypi.org/project/coverage/) | Apache-2.0 | coverage checking |
| [coveralls](https://pypi.org/project/coveralls/) | MIT | coverage uploader |
| [django-formtools](https://pypi.org/project/django-formtools/) | MIT | better forms / wizards | | [django-formtools](https://pypi.org/project/django-formtools/) | MIT | better forms / wizards |
| [django-allauth](https://pypi.org/project/django-allauth/) | MIT | SSO for django | | [django-allauth](https://pypi.org/project/django-allauth/) | MIT | SSO for django |
| [pint](https://pint.readthedocs.io/en/stable/) | [licence](https://github.com/hgrecco/pint/blob/master/LICENSE) | Physical unit conversion | | [pint](https://pint.readthedocs.io/en/stable/) | [licence](https://github.com/hgrecco/pint/blob/master/LICENSE) | Physical unit conversion |

View File

@ -37,7 +37,7 @@ InvenTree is built using the Django framework, which has a strong focus on secur
### Test coverage ### Test coverage
We run coverage tests on our codebase to ensure that we have a high level of test coverage above 90%. This is public and can be found [here](https://coveralls.io/github/inventree/InvenTree). We run coverage tests on our codebase to ensure that we have a high level of test coverage above 90%. This is public and can be found [here](https://app.codecov.io/gh/inventree/InvenTree).
### Pinning dependencies ### Pinning dependencies

View File

@ -1,7 +1,6 @@
# Dev requirements for InvenTree # Dev requirements for InvenTree
-c requirements.txt -c requirements.txt
coverage[toml] # Unit test coverage coverage[toml] # Unit test coverage
coveralls==2.1.2 # Coveralls linking (for tracking coverage) # PINNED 2022-06-28 - Old version needed for correct upload
django-admin-shell # Remote shell access django-admin-shell # Remote shell access
django-querycount # Display number of URL queries for requests django-querycount # Display number of URL queries for requests
django-slowtests # Show which unit tests are running slowly django-slowtests # Show which unit tests are running slowly

View File

@ -4,21 +4,15 @@ asgiref==3.8.1
# via django # via django
build==1.2.1 build==1.2.1
# via pip-tools # via pip-tools
certifi==2024.2.2
# via requests
cffi==1.16.0 cffi==1.16.0
# via cryptography # via cryptography
cfgv==3.4.0 cfgv==3.4.0
# via pre-commit # via pre-commit
charset-normalizer==3.3.2 charset-normalizer==3.3.2
# via # via pdfminer-six
# pdfminer-six
# requests
click==8.1.7 click==8.1.7
# via pip-tools # via pip-tools
coverage[toml]==5.5 coverage[toml]==5.5
# via coveralls
coveralls==2.1.2
cryptography==42.0.5 cryptography==42.0.5
# via pdfminer-six # via pdfminer-six
distlib==0.3.8 distlib==0.3.8
@ -31,14 +25,10 @@ django-admin-shell==2.0.1
django-querycount==0.8.3 django-querycount==0.8.3
django-slowtests==1.1.1 django-slowtests==1.1.1
django-test-migrations==1.3.0 django-test-migrations==1.3.0
docopt==0.6.2
# via coveralls
filelock==3.13.3 filelock==3.13.3
# via virtualenv # via virtualenv
identify==2.5.35 identify==2.5.35
# via pre-commit # via pre-commit
idna==3.6
# via requests
importlib-metadata==7.0.0 importlib-metadata==7.0.0
# via build # via build
isort==5.13.2 isort==5.13.2
@ -61,8 +51,6 @@ pyproject-hooks==1.0.0
# pip-tools # pip-tools
pyyaml==6.0.1 pyyaml==6.0.1
# via pre-commit # via pre-commit
requests==2.31.0
# via coveralls
setuptools==69.5.1 setuptools==69.5.1
# via # via
# nodeenv # nodeenv
@ -80,8 +68,6 @@ typing-extensions==4.11.0
# via # via
# asgiref # asgiref
# django-test-migrations # django-test-migrations
urllib3==2.2.1
# via requests
virtualenv==20.25.1 virtualenv==20.25.1
# via pre-commit # via pre-commit
wheel==0.43.0 wheel==0.43.0