-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ec1756
commit 3e6a819
Showing
2 changed files
with
57 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# [install the GitHub Application on the relevant repositories](https://github.com/apps/pre-commit-ci-lite/installations/new) | ||
name: Run pre-commit.ci lite | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
main: | ||
# note: the step must have either the default name or contain the text | ||
# pre-commit-ci-lite. the application uses this to find the right workflow. | ||
# [pre-commit.ci lite](https://pre-commit.ci/lite.html) | ||
name: pre-commit-ci-lite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.SGILE_PAT }} | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies and package | ||
run: | | ||
pip install -r requirements.dev.txt | ||
pip install pydantic | ||
- name: File changes | ||
uses: trilom/file-changes-action@v1.2.4 | ||
id: file_changes | ||
with: | ||
prNumber: ${{ github.event.number }} | ||
output: " " | ||
- name: pre-commit | ||
uses: pre-commit/action@v3.0.1 | ||
with: | ||
extra_args: --files ${{ steps.file_changes.outputs.files }} | ||
- name: Pre commit lite | ||
uses: pre-commit-ci/lite-action@v1.0.2 | ||
if: always() |
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