Skip to content

[CI] support mypy/pytest github pr annotations#2522

Merged
EnricoMi merged 21 commits intoPyGithub:masterfrom
trim21:ci-lint
Jun 14, 2023
Merged

[CI] support mypy/pytest github pr annotations#2522
EnricoMi merged 21 commits intoPyGithub:masterfrom
trim21:ci-lint

Conversation

@trim21
Copy link
Contributor

@trim21 trim21 commented May 8, 2023

image

Now we want to add inlint type annotation, this would be very useful


also add pytest-github-actions-annotate-failures for pytest

https://github.com/pytest-dev/pytest-github-actions-annotate-failures

@codecov-commenter
Copy link

codecov-commenter commented May 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (f291a36) 98.49% compared to head (dc1b01d) 98.48%.

❗ Current head dc1b01d differs from pull request most recent head 5bdb868. Consider uploading reports for the commit 5bdb868 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2522      +/-   ##
==========================================
- Coverage   98.49%   98.48%   -0.02%     
==========================================
  Files         128      128              
  Lines       12733    12612     -121     
==========================================
- Hits        12542    12421     -121     
  Misses        191      191              

see 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@trim21 trim21 changed the title ci: move mypy to seprated actions to support github pr annotations ci: support mypy/pytest github pr annotations May 13, 2023
@@ -7,7 +7,7 @@ envlist =
[gh-actions]
python =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this list is useless, when running tox on github actions with python versions that are not listed her still runs them:

So what is the point in maintaining this list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we can remove thi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, this make sure on ci job only run tests once

Copy link
Collaborator

@EnricoMi EnricoMi Jun 14, 2023

Choose a reason for hiding this comment

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

right, I guess one entry is sufficient then (plus a comment why this is there)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wait, I'll test if it will run multiple tests in one ci job.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is necessary.

comment added, also notice developer to keep python version in ci and tox.ini synced

Copy link
Collaborator

@EnricoMi EnricoMi 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 for tightening this!

@EnricoMi EnricoMi changed the title ci: support mypy/pytest github pr annotations [CI] support mypy/pytest github pr annotations Jun 14, 2023
@EnricoMi EnricoMi merged commit 52fc107 into PyGithub:master Jun 14, 2023
@EnricoMi
Copy link
Collaborator

Thanks a lot!

@trim21 trim21 deleted the ci-lint branch June 14, 2023 22:42
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.

3 participants