forked from mlcommons/inference
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix_test04
- Loading branch information
Showing
589 changed files
with
63,486 additions
and
18,344 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# These owners will be the default owners for everything in the repo. | ||
# Unless a later match takes precedence,they will be requested for review when someone opens a pull request. | ||
* @mlcommons/wg-inference | ||
|
||
/CODEOWNERS @mlcommons/staff |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Automatic code formatting | ||
name: "Code formatting" | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
|
||
env: | ||
python_version: "3.9" | ||
|
||
jobs: | ||
format-code: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
- name: Set up Python ${{ env.python_version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ env.python_version }} | ||
|
||
- name: Format modified python files | ||
env: | ||
filter: ${{ github.event.before }} | ||
run: | | ||
python3 -m pip install autopep8 | ||
for FILE in $(git diff --name-only $filter | grep -E '.*\.py$') | ||
do | ||
# Check if the file still exists in the working tree | ||
if [ -f "$FILE" ]; then | ||
autopep8 --in-place -a "$FILE" | ||
git add "$FILE" | ||
fi | ||
done | ||
- name: Format modified C++ files | ||
env: | ||
filter: ${{ github.event.before }} | ||
run: | | ||
for FILE in $(git diff --name-only $filter | grep -E '.*\.(cc|cpp|h|hpp)$') | ||
do | ||
# Check if the file still exists in the working tree | ||
if [ -f "$FILE" ]; then | ||
clang-format -i -style=file $FILE | ||
git add $FILE | ||
fi | ||
done | ||
- name: Commit and push changes | ||
run: | | ||
HAS_CHANGES=$(git diff --staged --name-only) | ||
if [ ${#HAS_CHANGES} -gt 0 ]; then | ||
git config --global user.name mlcommons-bot | ||
git config --global user.email "[email protected]" | ||
# Commit changes | ||
git commit -m '[Automated Commit] Format Codebase' | ||
git push | ||
fi |
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,33 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Publish site | ||
|
||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- master | ||
- docs | ||
|
||
jobs: | ||
|
||
publish: | ||
name: Publish the site | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository normally | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install Mkdocs | ||
run: pip install -r docs/requirements.txt | ||
|
||
- name: Run Mkdocs deploy | ||
run: mkdocs gh-deploy --force |
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.