-
-
Notifications
You must be signed in to change notification settings - Fork 170
feat: GitHub Action #594
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
+40
−3
Merged
feat: GitHub Action #594
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c0daaba
feat: adding native composite github action
henryiii 64c2339
docs: mention action
henryiii 733efdc
fix: use current version of Nox
henryiii 77147d6
fix: minor style fixes from lint
henryiii 8540c63
Merge branch 'main' into henryiii/feat/action
FollowTheProcess 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Setup Nox | ||
| description: 'Prepares all python versions for nox' | ||
| branding: | ||
| icon: package | ||
| color: blue | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "pypy-3.7" | ||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "pypy-3.8" | ||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "pypy-3.9" | ||
|
|
||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "3.7" | ||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "3.8" | ||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "3.9" | ||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "3.10" | ||
|
|
||
| - name: "Install nox" | ||
| run: pipx install '${{ github.action_path }}' | ||
| shell: bash |
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
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.
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.
FYI, this link assumes you click "publish this action" after this in GitHub Actions. In cibuildwheel, we've not done that (to avoid a "this is an action in the marketplace" banner at the top to make it look like it's only for GitHub Actions). If you'd prefer not to "publish to the marketplace" (which doesn't really do anything other than make it a tiny bit more searchable), then this link should point somewhere else, or not be a link at all.
I did check to make sure the name "nox" has not been taken yet.
Uh oh!
There was an error while loading. Please reload this page.
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.
I can't see any harm in publishing it in this way, it'd be nice to have an official nox action in the marketplace :) If any other maintainers feel differently though please chime in!Edit: I'm dumb, see below
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.
It just clicked what you meant by this @henryiii! For anyone else as slow to catch on as me, this is what we mean:
If we publish the action in the marketplace, the Nox repo will have that banner above it which implies it's just a GitHub action so IMO it's best to avoid as @henryiii did with cibuildwheel