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

Github actions pre-commit CI pipeline #279

Merged
merged 7 commits into from
Jun 11, 2023

Conversation

kenibrewer
Copy link
Member

Description

This pull-request implements #276 and will automatically run pre-commit checks on any changed files that differ between the target branch and the source branch.

Tests:
Example of a workflow that fails prettier linting checks: https://github.com/kenibrewer/pycytominer/actions/runs/4899077996
Example of a workflow that succeeds after code has been properly formatted: https://github.com/kenibrewer/pycytominer/actions/runs/4899097364

What is the nature of your change?

  • Bug fix (fixes an issue).
  • Enhancement (adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • This change requires a documentation update.

Checklist

Please ensure that all boxes are checked before indicating that a pull request is ready for review.

  • I have read the CONTRIBUTING.md guidelines.
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • New and existing unit tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have deleted all non-relevant text in this pull request template.

@codecov-commenter
Copy link

codecov-commenter commented May 6, 2023

Codecov Report

Merging #279 (e89eca9) into master (1e984c6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #279   +/-   ##
=======================================
  Coverage   95.00%   95.00%           
=======================================
  Files          57       57           
  Lines        3046     3046           
=======================================
  Hits         2894     2894           
  Misses        152      152           
Flag Coverage Δ
unittests 95.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@kenibrewer
Copy link
Member Author

@d33bs Would you be willing to review this PR as it comes from a feature you suggested?

Copy link
Member

@d33bs d33bs left a comment

Choose a reason for hiding this comment

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

Thanks for tagging me for review @kenibrewer and nice work! I had a few comments for your consideration. Please let me know if you have any questions.

.github/workflows/pre-commit-ci.yml Outdated Show resolved Hide resolved
.github/workflows/pre-commit-ci.yml Outdated Show resolved Hide resolved
.github/workflows/pre-commit-ci.yml Outdated Show resolved Hide resolved
@kenibrewer kenibrewer requested a review from d33bs June 7, 2023 12:10
gwaybio added a commit to gwaybio/pycytominer that referenced this pull request Jun 11, 2023
Copy link
Member

@d33bs d33bs left a comment

Choose a reason for hiding this comment

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

LGTM - thanks again @kenibrewer !

gwaybio added a commit that referenced this pull request Jun 11, 2023
…rt (#287)

* require greater than python3.8

* remove 3.7, add 3.10 and 3.11 to github actions

* close #259

* fix 3.10 version parsing in action actions/runner#1989

* bump read the docs python version

* update python versions in dev

* bump precommit version

* #279 (comment)
@kenibrewer
Copy link
Member Author

@gwaybio Could I get this PR merged now that it's ready?

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

Successfully merging this pull request may close these issues.

4 participants