forked from ml-explore/mlx-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* basic style checks for circleci * format * fix config
- Loading branch information
Showing
2 changed files
with
48 additions
and
4 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,35 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
linux_build_and_test: | ||
docker: | ||
- image: cimg/python:3.9 | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: Run style checks | ||
command: | | ||
pip install pre-commit | ||
pre-commit run --all | ||
if ! git diff --quiet; then echo 'Style checks failed, please install pre-commit and run pre-commit run --all and push the change'; exit 1; fi | ||
workflows: | ||
build_and_test: | ||
when: | ||
matches: | ||
pattern: "^(?!pull/)[-\\w]+$" | ||
value: << pipeline.git.branch >> | ||
jobs: | ||
- linux_build_and_test | ||
|
||
prb: | ||
when: | ||
matches: | ||
pattern: "^pull/\\d+(/head)?$" | ||
value: << pipeline.git.branch >> | ||
jobs: | ||
- hold: | ||
type: approval | ||
- linux_build_and_test: | ||
requires: [ hold ] |
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