Skip to content

Commit

Permalink
Merge branch 'main' into fix/push_oom
Browse files Browse the repository at this point in the history
  • Loading branch information
sauyon committed Nov 7, 2023
2 parents ccb008b + 1fed50c commit d7b74ec
Show file tree
Hide file tree
Showing 60 changed files with 591 additions and 851 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ jobs:
- name: Install dependencies
run: |
pdm venv create --with-pip --force
pdm sync -d -G grpc -G io -G testing -G frameworks
pdm run pip install torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu
pdm run pip install -U tensorflow
pdm sync -d -G grpc -G io -G testing
- name: Unit tests
run: pdm run -v unit
- name: Disambiguate coverage filename
Expand Down Expand Up @@ -152,12 +150,9 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.11']
server_type: ['http', 'grpc']
exclude:
- os: windows-latest
server_type: 'grpc'
server_type: ['http']
name: ${{ matrix.server_type }}-e2e-tests (python${{ matrix.python-version }}.${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 90
Expand All @@ -184,7 +179,7 @@ jobs:
run: |
pdm venv create --with-pip --force
pdm run pip install -r tests/e2e/bento_server_${{ matrix.server_type }}/requirements.txt
pdm sync -d -G grpc -G io -G testing
pdm sync -d -G io -G testing
- name: Run ${{ matrix.server_type }} tests
run: pdm run -v tests tests/e2e/bento_server_${{ matrix.server_type }}
- name: Disambiguate coverage filename
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ ci:
exclude: '(.*\.(css|js|svg))|(.*_generated.*)$'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.291'
rev: 'v0.1.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.10.1
hooks:
- id: black-jupyter
files: '(src|tests|docs|examples|typings)/'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pdm-project/pdm
rev: 2.9.3
rev: 2.10.0
hooks:
- id: pdm-lock-check
- repo: https://github.com/bufbuild/buf
rev: v1.26.1
rev: v1.27.2
hooks:
- id: buf-format
args: [--config=src/bentoml/grpc/buf.yaml, src/bentoml/grpc]
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/source/_static/img/yatai-bento-repos.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Incorporate tests
-----------------

You can integrate unit and end-to-end tests into the CI process, which are triggered once new Bentos are built.
See :ref:`concepts/bento:Testing` to learn more.
See :ref:`concepts/bento:Test Bentos` to learn more.

Preview changes with tags
-------------------------
Expand Down

0 comments on commit d7b74ec

Please sign in to comment.