-
Couldn't load subscription status.
- Fork 20
Fix up tooling #99
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
Fix up tooling #99
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
eb148c9
add org-check to PR notify
mshafer-NI 2a21e50
Merge branch 'main' of https://github.com/mshafer-NI/ni-python-styleg…
mshafer-NI 6e82ee6
Merge remote-tracking branch 'upstream/main'
mshafer-NI bb2fd0b
only notify when PR is opened or reopened
mshafer-NI 3e16eca
bump gr1n setup-poetry to v8 which adds support for py 3.10 and .11
mshafer-NI 703c448
also apply filter to the every-PR commenter
mshafer-NI 6d4d3a2
format files
mshafer-NI b7fe801
bump all setup-poetry's
mshafer-NI 350905b
bump poetry version
mshafer-NI 679573b
change push action to one that uses a non-deprecated toolset
mshafer-NI 94f40c6
setup an update-lock action
mshafer-NI e459fed
update pr and publish checks to use 1.2
mshafer-NI 3faf116
comment why this one is 1.1.15
mshafer-NI 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
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 |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Update Poetry lock on a regular basis | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 4 * * 0' # weekly at 04:00 on Sunday -> https://crontab.guru/#0_4_*_*_0 | ||
|
|
||
| env: | ||
| # Versions are also listed in PR.yml | ||
| POETRY_VERSION: 1.1.15 # keeping this one back for now until 1.2 becomes the standard for devs | ||
| PYTHON_VERSION: 3.9 # Use latest | ||
|
|
||
| jobs: | ||
| update_poetry_lock: | ||
| name: Update Poetry Lock | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| with: | ||
| ref: main # This is the branch the PR is to be created from | ||
| persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
| fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
|
|
||
| - uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ env.PYTHON_VERSION }} | ||
| - uses: Gr1N/setup-poetry@v8 | ||
| with: | ||
| poetry-version: ${{ env.POETRY_VERSION }} | ||
| - name: Check for lock changes | ||
| run: | | ||
| poetry lock | ||
| poetry install | ||
| poetry run ni-python-styleguide fix | ||
| - name: Create Pull Request | ||
| uses: peter-evans/create-pull-request@v4 | ||
| with: | ||
| commit-message: Update poetry lock and reformat | ||
| title: Update Poetry Lock | ||
| branch: aotumated-updates/update-poetry-lock | ||
| branch-suffix: short-commit-hash | ||
| body: | | ||
| # Update Poetry Lock | ||
| Ran poetry lock, install, then ni-python-styleguide fix to reformat any changes. | ||
| base: main | ||
| delete-branch: true |
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.