-
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.
Signed-off-by: Aaron Pham <[email protected]>
- Loading branch information
Showing
30 changed files
with
864 additions
and
0 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 @@ | ||
vendor/ |
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,3 @@ | ||
# load bazelrc from the legacy location as recommended | ||
# in https://github.com/bazelbuild/bazel/issues/6319 | ||
import %workspace%/tools/bazel.rc |
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 @@ | ||
5.3.1 |
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,2 @@ | ||
requirements/*-requirements.lock.txt linguist-generated=true | ||
requirements.bzl linguist-generated=true |
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 @@ | ||
* @aarnphm |
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,54 @@ | ||
name: 🐛 Bug Report | ||
description: Create a bug report to help us improve the library. | ||
title: "bug: " | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
id: issue-already-exists | ||
attributes: | ||
value: | | ||
Please search to see if an issue already exists for the bug you encountered. | ||
See [Searching Issues and Pull Requests](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests) for how to use the GitHub search bar and filters. | ||
- type: textarea | ||
id: describe-the-bug | ||
validations: | ||
required: true | ||
attributes: | ||
label: Describe the bug | ||
description: Please provide a clear and concise description about the problem you ran into. | ||
placeholder: This happened when I... | ||
- type: textarea | ||
id: to-reproduce | ||
validations: | ||
required: false | ||
attributes: | ||
label: To reproduce | ||
description: | | ||
Please provide a code sample or a code snipet to reproduce said problem. If you have code snippets, error messages, stack trace please also provide them here. | ||
**IMPORTANT**: make sure to use [code tag](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) to correctly format your code. Screenshot is helpful but don't use it for code snippets as it doesn't allow others to copy-and-paste your code. | ||
placeholder: | | ||
Steps to reproduce the bug: | ||
1. Provide '...' | ||
2. Run '...' | ||
3. See error | ||
- type: textarea | ||
id: expected-behavior | ||
validations: | ||
required: false | ||
attributes: | ||
label: Expected behavior | ||
description: "A clear and concise description of what you would expect to happen." | ||
- type: textarea | ||
id: environment-info | ||
attributes: | ||
label: Environment | ||
description: | | ||
Please share your environment with us. | ||
placeholder: | | ||
python: ... | ||
bazel: ... | ||
platform: ... | ||
validations: | ||
required: true |
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,9 @@ | ||
blank_issues_enabled: true | ||
version: 2.1 | ||
contact_links: | ||
- name: Discussions | ||
url: https://github.com/aarnphm/ecosystem/discussions | ||
about: Please ask general questions here. | ||
- name: Issues | ||
url: https://github.com/aarnphm/ecosystem/issues?q=is:issue+is:open+sort:updated-desc | ||
about: Please create and issue new tickets. |
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: 🚀 Feature Request | ||
description: Submit a proposal/feature request. | ||
title: "feat: " | ||
labels: ["new-feature", "enhancement"] | ||
body: | ||
- type: textarea | ||
id: feature-request | ||
validations: | ||
required: true | ||
attributes: | ||
label: Feature request | ||
description: | | ||
A clear and concise description of the feature request. | ||
placeholder: | | ||
I would like it if... | ||
- type: textarea | ||
id: motivation | ||
validations: | ||
required: false | ||
attributes: | ||
label: Motivation | ||
description: | | ||
Please outline the motivation for this feature request. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. | ||
If this is related to another issue, please link here too. | ||
If you have a current workaround, please also provide it here. | ||
placeholder: | | ||
This feature would solve ... | ||
- type: textarea | ||
id: other | ||
attributes: | ||
label: Other | ||
description: | | ||
Is there any way that you could help, e.g. by submitting a PR? | ||
placeholder: | | ||
I would love to contribute ... |
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,17 @@ | ||
## What does this PR address? | ||
|
||
<!-- Remove if not applicable --> | ||
|
||
Fixes #(issue) | ||
|
||
## Before submitting: | ||
|
||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
<!--- If you plan to update documentation or tests in follow-up, please note --> | ||
|
||
- [ ] Does the Pull Request follow [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/#summary) naming? Here are [GitHub's | ||
guide](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) on how to create a pull request. | ||
- [ ] Did you read through and follow [development guidelines](../DEVELOPMENT.md)? | ||
- [ ] Did your changes require updates to the documentation? Have you updated those accordingly? | ||
- [ ] Did you write tests to cover your changes? |
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,42 @@ | ||
name: Setup repo | ||
|
||
description: Setup repo with all features on CI | ||
|
||
inputs: | ||
python-version: | ||
description: "Python version" | ||
required: true | ||
default: "3.10" | ||
architecture: | ||
description: "Which architecture to run on" | ||
required: true | ||
default: x64 | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
architecture: ${{ inputs.architecture }} | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
shell: bash | ||
run: echo "directory=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
- name: Get cache key prefix | ||
id: get-cache-key-prefix | ||
shell: bash | ||
run: | | ||
echo "prefix=$ImageOS-$ImageVersion" >> $GITHUB_OUTPUT | ||
- name: Cache PyPI | ||
id: cache-pypi | ||
uses: actions/[email protected] | ||
with: | ||
key: ${{ steps.get-cache-key-prefix.outputs.prefix }}-pypi-${{ hashFiles('requirements/*-requirements.txt') }} | ||
path: ${{ steps.pip-cache.outputs.directory }} | ||
restore-keys: | | ||
${{ steps.get-cache-key-prefix.outputs.prefix }}-pypi-- | ||
- name: Install development dependencies | ||
shell: bash | ||
run: python -m pip install -r requirements/dev-requirements.lock.txt |
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,63 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "requirements/**" | ||
- "src/bentoml/**" | ||
- "src/bentoml_cli/**" | ||
- "examples/**" | ||
- "tests/**" | ||
- "docs/**" | ||
- ".github/actions/setup-repo/" | ||
- ".github/actions/tests-cov/" | ||
- "codecov.yml" | ||
- "pyproject.toml" | ||
- ".github/workflows/ci.yml" | ||
- "scripts/ci/config.yml" | ||
schedule: | ||
- cron: "0 6 * * 1/2" # Every other day 6AM UTC | ||
|
||
concurrency: | ||
group: ci-${{ github.event.pull_request.number || github.sha }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
LINES: 200 | ||
COLUMNS: 200 | ||
BENTOML_DEBUG: True | ||
BENTOML_DO_NOT_TRACK: True | ||
PYTEST_PLUGINS: bentoml.testing.pytest.plugin | ||
|
||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defaultsrun | ||
defaults: | ||
run: | ||
shell: bash --noprofile --norc -exo pipefail {0} | ||
|
||
jobs: | ||
unit-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
if: "!github.event.repository.fork" # Don't run on fork repository | ||
name: python${{ matrix.python-version }}-unit-tests (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # fetch all tags and branches | ||
- name: Setup CI | ||
uses: ./.github/actions/setup-repo | ||
with: | ||
python-version: ${{ matrix.python-version }} |
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,53 @@ | ||
name: style-check | ||
|
||
concurrency: | ||
group: style-check-${{ github.event.pull_request.number || github.sha }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 1/2" # Every other day 12AM UTC | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "requirements/**" | ||
- "tests/**" | ||
- ".github/actions/**" | ||
- "pyproject.toml" | ||
- ".github/workflows/style.yml" | ||
|
||
env: | ||
LINES: 200 | ||
COLUMNS: 200 | ||
|
||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defaultsrun | ||
defaults: | ||
run: | ||
shell: bash --noprofile --norc -exo pipefail {0} | ||
|
||
jobs: | ||
codestyle: | ||
runs-on: ubuntu-latest | ||
if: "!github.event.repository.fork" # Don't run on fork repository | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # fetch all tags and branches | ||
- name: Setup CI | ||
uses: ./.github/actions/setup-repo | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
if: "!github.event.repository.fork" # Don't run on fork repository | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # fetch all tags and branches | ||
- name: Setup CI | ||
uses: ./.github/actions/setup-repo |
Oops, something went wrong.