Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub actions for PR (documentation, pytest, coverage) #6850

Merged
merged 6 commits into from
Apr 7, 2022

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Apr 6, 2022

Related to #6851

This PR adds the following GitHub actions:

  1. build documentation
  2. pytest ubuntu
  3. pytest macOS
  4. pytest win
  5. diff coverage

Ref: https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-nodejs-or-python?langId=py

Preinstalled software:

For viewing a code coverage, you need to install code-climate extension
Coverage example:
image
image

Code Coverage Console output example

Code Coverage File: coverage.xml
Code Coverage

Click to expand!
Package Line Rate Branch Rate Complexity Health
src.tribler.core 68% 0% 0
src.tribler.core.components 95% 0% 0
src.tribler.core.components.bandwidth_accounting 92% 0% 0
src.tribler.core.components.bandwidth_accounting.community 99% 0% 0
src.tribler.core.components.bandwidth_accounting.db 100% 0% 0
src.tribler.core.components.bandwidth_accounting.restapi 100% 0% 0
src.tribler.core.components.bandwidth_accounting.tests 100% 0% 0
src.tribler.core.components.bandwidth_accounting.trust_calculation 99% 0% 0
src.tribler.core.components.gigachannel 100% 0% 0
src.tribler.core.components.gigachannel.community 88% 0% 0
src.tribler.core.components.gigachannel.community.tests 99% 0% 0
src.tribler.core.components.gigachannel.tests 100% 0% 0
src.tribler.core.components.gigachannel_manager 78% 0% 0
src.tribler.core.components.gigachannel_manager.tests 99% 0% 0
src.tribler.core.components.ipv8 97% 0% 0
src.tribler.core.components.ipv8.tests 100% 0% 0
src.tribler.core.components.key 100% 0% 0
src.tribler.core.components.key.tests 100% 0% 0
src.tribler.core.components.libtorrent 90% 0% 0
src.tribler.core.components.libtorrent.download_manager 76% 0% 0
src.tribler.core.components.libtorrent.restapi 88% 0% 0
src.tribler.core.components.libtorrent.restapi.tests 100% 0% 0
src.tribler.core.components.libtorrent.tests 98% 0% 0
src.tribler.core.components.libtorrent.utils 83% 0% 0
src.tribler.core.components.metadata_store 69% 0% 0
src.tribler.core.components.metadata_store.category_filter 93% 0% 0
src.tribler.core.components.metadata_store.category_filter.tests 100% 0% 0
src.tribler.core.components.metadata_store.db 97% 0% 0
src.tribler.core.components.metadata_store.db.orm_bindings 98% 0% 0
src.tribler.core.components.metadata_store.db.tests 100% 0% 0
src.tribler.core.components.metadata_store.remote_query_community 97% 0% 0
src.tribler.core.components.metadata_store.remote_query_community.tests 100% 0% 0
src.tribler.core.components.metadata_store.restapi 95% 0% 0
src.tribler.core.components.metadata_store.restapi.tests 99% 0% 0
src.tribler.core.components.metadata_store.tests 94% 0% 0
src.tribler.core.components.payout 98% 0% 0
src.tribler.core.components.payout.tests 100% 0% 0
src.tribler.core.components.popularity 100% 0% 0
src.tribler.core.components.popularity.community 100% 0% 0
src.tribler.core.components.popularity.community.tests 100% 0% 0
src.tribler.core.components.popularity.tests 100% 0% 0
src.tribler.core.components.reporter 96% 0% 0
src.tribler.core.components.reporter.tests 100% 0% 0
src.tribler.core.components.resource_monitor 100% 0% 0
src.tribler.core.components.resource_monitor.implementation 97% 0% 0
src.tribler.core.components.resource_monitor.implementation.tests 100% 0% 0
src.tribler.core.components.resource_monitor.tests 100% 0% 0
src.tribler.core.components.restapi 100% 0% 0
src.tribler.core.components.restapi.rest 91% 0% 0
src.tribler.core.components.restapi.rest.tests 99% 0% 0
src.tribler.core.components.restapi.tests 100% 0% 0
src.tribler.core.components.socks_servers 100% 0% 0
src.tribler.core.components.socks_servers.socks5 91% 0% 0
src.tribler.core.components.socks_servers.socks5.tests 100% 0% 0
src.tribler.core.components.socks_servers.tests 100% 0% 0
src.tribler.core.components.tag 95% 0% 0
src.tribler.core.components.tag.community 100% 0% 0
src.tribler.core.components.tag.community.tests 100% 0% 0
src.tribler.core.components.tag.db 98% 0% 0
src.tribler.core.components.tag.db.tests 95% 0% 0
src.tribler.core.components.tag.restapi 100% 0% 0
src.tribler.core.components.tag.restapi.tests 100% 0% 0
src.tribler.core.components.tag.rules 98% 0% 0
src.tribler.core.components.tag.rules.tests 100% 0% 0
src.tribler.core.components.tag.tests 100% 0% 0
src.tribler.core.components.tests 100% 0% 0
src.tribler.core.components.torrent_checker 100% 0% 0
src.tribler.core.components.torrent_checker.tests 100% 0% 0
src.tribler.core.components.torrent_checker.torrent_checker 95% 0% 0
src.tribler.core.components.torrent_checker.torrent_checker.tests 100% 0% 0
src.tribler.core.components.tunnel 98% 0% 0
src.tribler.core.components.tunnel.community 92% 0% 0
src.tribler.core.components.tunnel.tests 100% 0% 0
src.tribler.core.components.tunnel.tests.test_full_session 98% 0% 0
src.tribler.core.components.version_check 100% 0% 0
src.tribler.core.components.version_check.tests 100% 0% 0
src.tribler.core.components.watch_folder 94% 0% 0
src.tribler.core.components.watch_folder.tests 100% 0% 0
src.tribler.core.config 98% 0% 0
src.tribler.core.config.tests 100% 0% 0
src.tribler.core.logger 100% 0% 0
src.tribler.core.logger.tests 100% 0% 0
src.tribler.core.sentry_reporter 100% 0% 0
src.tribler.core.sentry_reporter.tests 100% 0% 0
src.tribler.core.tests 100% 0% 0
src.tribler.core.tests.tools 100% 0% 0
src.tribler.core.tests.tools.tracker 89% 0% 0
src.tribler.core.upgrade 94% 0% 0
src.tribler.core.upgrade.tests 100% 0% 0
src.tribler.core.utilities 78% 0% 0
src.tribler.core.utilities.tests 97% 0% 0
Summary 94% (22514 / 24055) 0% (0 / 0) 0

@drew2a drew2a requested review from a team, xoriole and kozlovsky and removed request for a team and xoriole April 6, 2022 19:24
@drew2a drew2a marked this pull request as draft April 6, 2022 20:00
@drew2a drew2a changed the title Add build_documentation.yml Add GitHub action for PR Apr 6, 2022
@codeclimate
Copy link

codeclimate bot commented Apr 6, 2022

Code Climate has analyzed commit 569910b and detected 0 issues on this pull request.

View more on Code Climate.

@drew2a drew2a force-pushed the feature/ga_build_doc branch 3 times, most recently from 7634d51 to 1cb590d Compare April 6, 2022 23:02
@drew2a drew2a changed the title Add GitHub action for PR Add GitHub actions for PR (documentation, pytest) Apr 6, 2022
@drew2a drew2a changed the title Add GitHub actions for PR (documentation, pytest) Add GitHub actions for PR (documentation, pytest, coverage) Apr 7, 2022
@drew2a drew2a marked this pull request as ready for review April 7, 2022 13:56
@drew2a drew2a force-pushed the feature/ga_build_doc branch 2 times, most recently from 40d2586 to 7ea4f7b Compare April 7, 2022 15:09
@drew2a drew2a added this to the 7.13.0 April milestone Apr 7, 2022
@sonarcloud
Copy link

sonarcloud bot commented Apr 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants