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 more badges to readme #424

Closed
wants to merge 3 commits into from
Closed

Add more badges to readme #424

wants to merge 3 commits into from

Conversation

ashkan-software
Copy link
Contributor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Docs change / refactoring / dependency upgrade

Motivation and Context / Related issue

Resolves #382

Also, if needed, I can add coveralls here to show the coverage of our tests: https://coveralls.io. I would need to create an account and connect the github repository PyTorch first, then enable it for Opacus

How Has This Been Tested (if it applies)

I tested this on my forked version and the badges appear correctly

Checklist

  • The documentation is up-to-date with the changes I made.
  • I have read the CONTRIBUTING document and completed the CLA (see CONTRIBUTING).
  • All tests passed, and additional code has been covered with new tests.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 3, 2022
README.md Outdated
Comment on lines 6 to 7
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/pytorch/opacus/blob/main/CONTRIBUTING.md)
[![License](https://img.shields.io/badge/license-apache2-green.svg)](https://github.com/pytorch/opacus/blob/main/LICENSE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it's a good idea, but we may consider using relative links here. In this case, the link will always points to the same branch and the same repository if someone clones.

@facebook-github-bot
Copy link
Contributor

@ashkan-software has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@karthikprasad karthikprasad deleted the badges branch May 5, 2022 19:10
@arn7av arn7av mentioned this pull request Sep 26, 2022
7 tasks
facebook-github-bot pushed a commit that referenced this pull request Sep 29, 2022
Summary:
## Types of changes

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Docs change / refactoring / dependency upgrade

(None of the above - changes are made to CI pipeline)

## Motivation and Context / Related issue

The objective was to have code coverage made [publicly accessible](#424) via https://coveralls.io
To achieve this, the following changes were made:
1. move existing tests running via `pytest` & `unittest` to run via [`coverage`](https://coverage.readthedocs.io)
2. add dependency of `coverage` in `dev_requirements.txt`, followed by `coveralls` in CircleCI config
3. minor refactoring of tasks to prepare for upload to `coveralls`
4. upload coverage reports generated in `parallel` to `coveralls` as CircleCI tasks
5. at the end of workflow, signal `coveralls` to combine all `parallel` uploads under single run

## How Has This Been Tested (if it applies)

Testing changes made to CircleCI config is tricky. Most of the code was tested via opening this PR and letting CircleCI run on this new config. Some obscure parts were tested in a personal CircleCI environment.

## Checklist

- [ ] The documentation is up-to-date with the changes I made.
- [x] I have read the **CONTRIBUTING** document and completed the CLA (see **CONTRIBUTING**).
- [x] All tests passed, and additional code has been covered with new tests.

Pull Request resolved: #515

Reviewed By: ashkan-software

Differential Revision: D39795415

Pulled By: ashkan-software

fbshipit-source-id: 82830bfea917bed7efcb15d854f7e1af34802dbb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more badges and ongoing checks to github main page
3 participants