generated from ni/github-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Allow adding install-args to the poetry install command in analyze-project #40
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
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d8bba9f
Allow dependency groups to be specified for install
dixonjoel b0e22b9
Add test project for extras and dependency groups
dixonjoel 4542259
Don't check base dependencies
dixonjoel 2c5c46e
Fix extras and poetry check --lock
dixonjoel 5228886
Add install-args input instead of separate extras and dependency-grou…
dixonjoel f631e43
Add hash of install-args to the cache key
dixonjoel 68ab8b1
Fix test where we were using 'extras' and 'dependency-groups'
dixonjoel 265dcc7
Fix install command
dixonjoel 74b7164
Add single quotes around two space-delimited extras
dixonjoel 451ac7f
Add fail-fast: false so all analyze-project tests complete even if on…
dixonjoel d9f602b
Fix intentionally introduced error since the fail-fast: false worked
dixonjoel c944450
PR feedback from Brad
dixonjoel 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
Empty file.
778 changes: 778 additions & 0 deletions
778
.github/test_projects/extras-and-dependency-groups/poetry.lock
Large diffs are not rendered by default.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
.github/test_projects/extras-and-dependency-groups/pyproject.toml
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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| [tool.poetry] | ||
| name = "extras-and-dependency-groups" | ||
| version = "0.1.0" | ||
| description = "Tests actions/analyze-project with a project that has extras and dependency groups" | ||
| authors = ["Joel Dixon <joel.dixon@ni.com>"] | ||
| readme = "README.md" | ||
| packages = [{include = "test_project", from = "src"}] | ||
|
|
||
| [tool.poetry.dependencies] | ||
| ni-python-styleguide = ">=0.4.7" | ||
| python = "^3.9" | ||
| requests = "^2.28.0" | ||
| # Optional dependencies for extras | ||
| colorama = {version = "^0.4.0", optional = true} | ||
| tomli = {version = "^2.0.0", optional = true} | ||
|
|
||
| [tool.poetry.extras] | ||
| # Small utility packages for testing extras | ||
| colors = ["colorama"] | ||
| serialization = ["tomli"] | ||
|
|
||
| [tool.poetry.group.dev.dependencies] | ||
| # Small packages for testing dependency groups | ||
| pytest = "^7.0.0" | ||
|
|
||
| [tool.poetry.group.docs.dependencies] | ||
| # Small documentation-related packages | ||
| markdown = "^3.4.0" | ||
|
|
||
| [tool.poetry.group.utils.dependencies] | ||
| # Small utility packages | ||
| click = "^8.0.0" | ||
|
|
||
| [build-system] | ||
| requires = ["poetry-core>=2.0.0,<3.0.0"] | ||
| build-backend = "poetry.core.masonry.api" |
1 change: 1 addition & 0 deletions
1
.github/test_projects/extras-and-dependency-groups/src/test_project/__init__.py
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| """Docstring required.""" |
1 change: 1 addition & 0 deletions
1
.github/test_projects/extras-and-dependency-groups/tests/__init__.py
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| """Module docstring.""" |
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
dixonjoel marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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.
Uh oh!
There was an error while loading. Please reload this page.