-
Notifications
You must be signed in to change notification settings - Fork 16
maint: use pytest-cov, cleanup docs/requirements.txt, and reduce rate limiting issues in CI #169
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
Merged
+46
−25
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7d6913e
ci: do things in a Python 3.14 environment instead of 3.13
consideRatio e5ede8c
tests: use pytest-cov for test coverage summaries
consideRatio 45fd099
cleanup: coalesce install strategies of docs requirements
consideRatio b72d59a
ci: rename secrets.GITHUB_TOKEN to github.token for clarity
consideRatio 25e03fb
ci: reduce API burden and stop using a PAT in trusted workflows
consideRatio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ sphinx: | |
| build: | ||
| os: ubuntu-24.04 | ||
| tools: | ||
| python: "3.13" | ||
| python: "3.14" | ||
|
|
||
| python: | ||
| install: | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
| requires = ["setuptools>=77", "setuptools-scm"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
|
|
||
| [project] | ||
| name = "github_activity" | ||
| description = "Grab recent issue/PR activity from a GitHub repository and render it as markdown." | ||
|
|
@@ -23,17 +24,20 @@ Source = "https://github.com/executablebooks/github-activity" | |
| [project.optional-dependencies] | ||
| testing = [ | ||
| "pytest", | ||
| "pytest-cov", | ||
| "pytest-regressions", | ||
| ] | ||
| sphinx = [ | ||
| "sphinx", | ||
| "myst_parser", | ||
| "sphinx_book_theme", | ||
| "sphinx>=5", | ||
| "sphinx-design", | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was part of docs/requirements.txt, but not here, so I added it here. |
||
| "sphinx_book_theme>=1", | ||
| ] | ||
|
|
||
| [project.scripts] | ||
| github-activity = "github_activity.cli:main" | ||
|
|
||
|
|
||
| [tool.setuptools] | ||
| zip-safe = false | ||
| include-package-data = true | ||
|
|
@@ -52,8 +56,25 @@ dependencies = { file = "requirements.txt" } | |
| # only the file-finder | ||
| fallback_version = "0.0.0" | ||
|
|
||
|
|
||
| [tool.ruff.lint.per-file-ignores] | ||
| "docs/conf.py" = ["E402"] | ||
|
|
||
|
|
||
| # pytest is used for running Python based tests | ||
| # | ||
| # ref: https://docs.pytest.org/en/stable/ | ||
| # | ||
| [tool.pytest.ini_options] | ||
| addopts = "--verbose --color=yes --durations=10 --cov=github_activity" | ||
| testpaths = ["tests"] | ||
|
|
||
|
|
||
| [tool.coverage.run] | ||
| patch = ["subprocess"] | ||
|
|
||
|
|
||
| [tool.tbump] | ||
| # Uncomment this if your project is hosted on GitHub: | ||
| github_url = "https://github.com/executablebooks/github-activity" | ||
|
|
||
| [tool.tbump.version] | ||
|
|
@@ -81,6 +102,3 @@ search = 'version = "{current_version}"' | |
| [[tool.tbump.file]] | ||
| src = "github_activity/__init__.py" | ||
| search = '__version__ = "{current_version}"' | ||
|
|
||
| [tool.ruff.lint.per-file-ignores] | ||
| "docs/conf.py" = ["E402"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use of this token failed in another way then using the workflow's
github.token(akasecrets.GITHUB_TOKEN), so instead of debugging it etc, I removed it and reduced the burden on rate limiting to stabilize things that way.