-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add Composite Action Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> style: pre-commit fixes style: pre-commit fixes * feat: split output Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
- Loading branch information
Showing
4 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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,46 @@ | ||
name: repo-review | ||
description: "Runs repo-review" | ||
branding: | ||
icon: package | ||
color: blue | ||
inputs: | ||
plugins: | ||
description: "Plugins to install, exactly as would be passed to pip install" | ||
required: true | ||
package-dir: | ||
description: 'Input directory, defaults to "."' | ||
required: false | ||
default: "" | ||
select: | ||
description: "Checks to select, overrides pyproject.toml" | ||
required: false | ||
default: "" | ||
ignore: | ||
description: "Checks to ignore, overrides pyproject.toml" | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
id: python | ||
with: | ||
python-version: "3.11" | ||
update-environment: false | ||
|
||
- name: Install repo-review and plugins | ||
shell: bash | ||
run: | | ||
pipx install --python '${{ steps.python.outputs.python-path }}' '${{ github.action_path }}[cli]' | ||
pipx inject repo-review ${{ inputs.plugins }} | ||
- name: Run repo-review | ||
shell: bash | ||
run: > | ||
repo-review . | ||
--format split | ||
--select "${{ inputs.select }}" | ||
--ignore "${{ inputs.ignore }}" | ||
--package-dir "${{ inputs.package-dir }}" | ||
>> $GITHUB_STEP_SUMMARY |
This file contains 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 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