Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = True
source = vulnerablecode

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: O8pGVG8t4c9FMEkiWAwP3WyuJnXmGyNTr
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ jobs:
POSTGRES_PORT: 5432
DJANGO_DEV: 1
GH_TOKEN: 1

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ notifications:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always

language:
python
after_success:
- bash <(curl -s https://codecov.io/bash)
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VulnerableCode
==============

|Build Status| |License| |Python 3.8| |stability-wip| |Gitter chat|
|Build Status| |License| |Python 3.8| |stability-wip| |Gitter chat| |Coverage|


.. |Build Status| image:: https://github.com/nexB/vulnerablecode/workflows/CI/badge.svg
Expand All @@ -13,6 +13,9 @@ VulnerableCode
.. |stability-wip| image:: https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg
.. |Gitter chat| image:: https://badges.gitter.im/gitterHQ/gitter.png
:target: https://gitter.im/aboutcode-org/vulnerablecode
.. |Coverage| image:: https://coveralls.io/repos/github/anshsrtv/vulnerablecode/badge.svg?branch=main
:target: https://coveralls.io/github/anshsrtv/vulnerablecode?branch=main



VulnerableCode is a free and open database of FOSS software package
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pygit2==1.5.0
Pygments==2.7.4
pyparsing==2.4.5
pytest==6.2.3
python-coveralls==2.9.2
pytest-django==4.1.0
django-widget-tweaks==1.4.8
pytest-dependency==0.4.0
Expand All @@ -56,4 +57,4 @@ zipp==0.6.0
requests==2.23.0
toml==0.10.2
PyYAML==5.4
freezegun==1.1.0
freezegun==1.1.0