-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Showing
4,528 changed files
with
893,238 additions
and
234,621 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"codebaseName": "onnxruntime_master" | ||
"codebaseName": "onnxruntime_main" | ||
} |
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,20 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 5 | ||
|
||
- package-ecosystem: "github-actions" | ||
# Workflow files stored in the | ||
# default location of `.github/workflows` | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 5 |
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 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out a copy of the repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check whether the citation metadata from CITATION.cff is valid | ||
uses: citation-file-format/[email protected] | ||
|
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,14 @@ | ||
# Check gradle-wrapper.jar checksums against official Gradle releases. | ||
# See: https://github.com/marketplace/actions/gradle-wrapper-validation | ||
# This workflow was copied from the link above. | ||
|
||
name: "Validate Gradle Wrapper" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
validation: | ||
name: "Validation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gradle/wrapper-validation-action@v1 |
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 |
---|---|---|
|
@@ -3,32 +3,16 @@ name: Lint | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- rel-* | ||
pull_request: | ||
|
||
jobs: | ||
lint-python: | ||
name: Lint Python | ||
optional-lint: | ||
name: Optional Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: flake8 | ||
uses: reviewdog/action-flake8@v3 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
# Change reviewdog reporter if you need [github-pr-check, github-check, github-pr-review]. | ||
reporter: github-pr-check | ||
# Change reporter level if you need. | ||
# GitHub Status Check won't become failure with a warning. | ||
level: error | ||
filter_mode: file | ||
- name: pyflakes | ||
uses: reviewdog/action-pyflakes@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-check | ||
level: warning | ||
- uses: actions/checkout@v3 | ||
- name: misspell # Check spellings as well | ||
uses: reviewdog/action-misspell@v1 | ||
with: | ||
|
@@ -44,37 +28,49 @@ jobs: | |
reporter: github-pr-check | ||
level: info | ||
filter_mode: file | ||
- name: pyright | ||
uses: jordemort/action-pyright@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-check | ||
level: warning | ||
filter_mode: added | ||
lib: true | ||
- name: pylint | ||
uses: dciborow/[email protected] | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-check | ||
level: warning | ||
filter_mode: diff_context | ||
glob_pattern: "**/*.py" | ||
|
||
lint-python-format: | ||
# Separated black/isort from other Python linters because we want this job to | ||
# fail and not affect other linters | ||
# Required workflow | ||
name: Python format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
# Version range or exact version of Python to use, using SemVer's version range syntax. Reads from .python-version if unset. | ||
python-version: "3.10" | ||
- uses: psf/black@stable | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -r requirements-dev.txt | ||
python -m pip install lintrunner lintrunner-adapters | ||
lintrunner init | ||
- name: Run lintrunner on all files | ||
run: | | ||
set +e | ||
if ! lintrunner --force-color --all-files --tee-json=lint.json -v; then | ||
echo "" | ||
echo -e "\e[1m\e[36mYou can reproduce these results locally by using \`lintrunner\`. To set up lintrunner locally, see https://github.com/microsoft/onnxruntime/blob/main/docs/Coding_Conventions_and_Standards.md#linting .\e[0m" | ||
exit 1 | ||
fi | ||
- name: Produce SARIF | ||
if: always() | ||
run: | | ||
python -m lintrunner_adapters to-sarif lint.json lintrunner.sarif | ||
- name: Upload SARIF file | ||
if: always() | ||
continue-on-error: true | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
options: "--check --diff --color" | ||
- uses: isort/isort-action@master | ||
# Path to SARIF file relative to the root of the repository | ||
sarif_file: lintrunner.sarif | ||
category: lintrunner | ||
checkout_path: ${{ github.workspace }} | ||
|
||
lint-cpp: | ||
name: Lint C++ | ||
|
@@ -92,13 +88,6 @@ jobs: | |
--cmake_extra_defines CMAKE_EXPORT_COMPILE_COMMANDS=ON | ||
- name: Generate ONNX protobuf files | ||
run: cmake --build build/Debug --config Debug --target onnx_proto | ||
# - name: Run clang-tidy | ||
# uses: ZedThree/clang-tidy-review@526cbfb043719639f1ebdeedae0cc1eacd219d8f | ||
# with: | ||
# token: ${{ secrets.github_token }} | ||
# build_dir: "build/Debug" | ||
# config_file: ".clang-tidy" | ||
# lgtm_comment_body: "" | ||
- uses: reviewdog/action-cpplint@master | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
|
@@ -111,7 +100,7 @@ jobs: | |
name: Lint JavaScript | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: reviewdog/action-eslint@v1 | ||
with: | ||
reporter: github-pr-check | ||
|
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 |
---|---|---|
@@ -1,43 +1,52 @@ | ||
name: Update C/C++ API Docs | ||
|
||
# Run when the C API changes or every month so that the artifact does not expire | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- include/onnxruntime/core/session/** | ||
- orttraining/orttraining/training_api/include/** | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "apidocs-c" | ||
cancel-in-progress: false | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
publish: | ||
build: | ||
name: Generate C/C++ API docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Install doxygen and dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt-get install libclang-9-dev | ||
sudo apt-get install libclang-cpp9 | ||
wget https://www.doxygen.nl/files/doxygen-1.9.2.linux.bin.tar.gz | ||
tar xvzf doxygen-1.9.2.linux.bin.tar.gz | ||
- name: Set commit ID | ||
id: vars | ||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
sudo apt-get install libclang-dev | ||
sudo apt-get install libclang-cpp14 | ||
wget https://www.doxygen.nl/files/doxygen-1.9.6.linux.bin.tar.gz | ||
tar xvzf doxygen-1.9.6.linux.bin.tar.gz | ||
- name: Run doxygen | ||
run: | | ||
mkdir -p build/doxygen | ||
cd docs/c_cxx | ||
../../doxygen-1.9.2/bin/doxygen | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
clean: false | ||
- name: Move API docs into target area | ||
../../doxygen-1.9.6/bin/doxygen | ||
- name: Log source commit | ||
run: git rev-parse --short HEAD > build/doxygen/html/source-version.txt | ||
- name: Move C/C++ docs into site | ||
run: | | ||
rm -rf docs/api/c | ||
mv build/doxygen/html docs/api/c | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
mkdir -p _site/docs/api | ||
rm -rf site/docs/api/c | ||
mv build/doxygen/html _site/docs/api/c | ||
- name: Upload new site | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
branch: gh-pages-pr | ||
base: gh-pages | ||
title: '[Automated]: Update C/C++ API docs' | ||
commit-message: 'Update C/C++ API docs to commit ${{ steps.vars.outputs.sha_short }}' | ||
add-paths: docs/api/c | ||
name: onnxruntime-c-apidocs | ||
path: _site | ||
retention-days: 60 |
Oops, something went wrong.