-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BE][CI] - add a github PR template and CI workflow migration (#282)
* add a PR template and a workflow mirroring the current circleci pre-commit job * remove circleci config and mentions
- Loading branch information
Showing
4 changed files
with
53 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
## Motivation and Context | ||
|
||
<!--- Why is this change required? What problem does it solve? --> | ||
<!--- Link to existing issues or related PRs here if they exists. --> | ||
|
||
## How Has This Been Tested | ||
|
||
<!--- Please describe here how your modifications have been tested. --> | ||
|
||
## Types of changes | ||
|
||
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
- [ ] Docs change / refactoring / dependency upgrade | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
|
||
## Checklist | ||
|
||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
|
||
- [ ] My code follows the code style of this project. | ||
- [ ] My change requires a change to the documentation. | ||
- [ ] I have updated the documentation accordingly. | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] All new and existing tests passed. |
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,27 @@ | ||
name: Run pre-commit | ||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- name: Setup python | ||
uses: actions/setup-python@v5.0.0 | ||
with: | ||
python-version: '3.9.16' | ||
- name: install dependencies | ||
run: |- | ||
pip install -U pip setuptools pre-commit | ||
# Install the hooks now so that they'll be cached | ||
pre-commit install-hooks | ||
- name: Check Code Style using pre-commit | ||
run: |- | ||
SKIP=eslint pre-commit run --show-diff-on-failure --all-files | ||
#NOTE: use the below to debug with ssh: simply move this "job" just before the crashing job to intercept the workflow | ||
#- name: Debugging with tmate | ||
# uses: mxschmitt/action-tmate@v3.18 |
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