-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from andrewm4894/pre-commit-initial-changes
add pre-commit changes
- Loading branch information
Showing
79 changed files
with
468 additions
and
374 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Serverless Branch Deployments | |
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
|
||
concurrency: | ||
# Cancel in-progress deploys to same branch | ||
group: ${{ github.ref }}/branch_deployments | ||
|
@@ -20,7 +20,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
outputs: | ||
build_info: ${{ steps.parse-workspace.outputs.build_info }} | ||
|
||
steps: | ||
- name: Prerun Checks | ||
id: prerun | ||
|
@@ -39,7 +39,7 @@ jobs: | |
with: | ||
ref: ${{ github.head_ref }} | ||
path: project-repo | ||
|
||
- name: Python Executable Deploy | ||
if: steps.prerun.outputs.result == 'pex-deploy' | ||
uses: dagster-io/dagster-cloud-action/actions/[email protected] | ||
|
@@ -75,4 +75,3 @@ jobs: | |
organization_id: ${{ secrets.ORGANIZATION_ID }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
branches: | ||
- "main" | ||
- "master" | ||
|
||
concurrency: | ||
# Cancel in-progress deploys to same branch | ||
group: ${{ github.ref }}/deploy | ||
|
@@ -22,7 +22,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
outputs: | ||
build_info: ${{ steps.parse-workspace.outputs.build_info }} | ||
|
||
steps: | ||
- name: Prerun Checks | ||
id: prerun | ||
|
@@ -41,7 +41,7 @@ jobs: | |
with: | ||
ref: ${{ github.head_ref }} | ||
path: project-repo | ||
|
||
- name: Python Executable Deploy | ||
if: steps.prerun.outputs.result == 'pex-deploy' | ||
uses: dagster-io/dagster-cloud-action/actions/[email protected] | ||
|
@@ -77,4 +77,3 @@ jobs: | |
organization_id: ${{ secrets.ORGANIZATION_ID }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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,35 @@ | ||
name: pre-commit | ||
|
||
on: | ||
workflow_call: | ||
pull_request_target: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# in case of PR, check out the PR's head branch | ||
- uses: actions/checkout@v3 | ||
if: github.event_name == 'pull_request_target' | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
# in case of push, check out the main branch | ||
- uses: actions/checkout@v3 | ||
if: github.event_name != 'pull_request_target' | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
cache-dependency-path: "**/requirements*.txt" | ||
- uses: pre-commit/[email protected] | ||
- name: Post PR comment on failure | ||
if: failure() && github.event_name == 'pull_request_target' | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
:x: **pre-commit** failed. | ||
Please run `pre-commit run --all-files` locally and commit the changes. | ||
Find more information in the repository's CONTRIBUTING.md |
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 |
---|---|---|
|
@@ -176,4 +176,4 @@ models/* | |
|
||
# tmp | ||
tmp | ||
tmpdata | ||
tmpdata |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
"llmalert", | ||
"openai" | ||
] | ||
} | ||
} |
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
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
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
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
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
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
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
Oops, something went wrong.