Skip to content

Commit

Permalink
chore: enable cache
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron <[email protected]>
  • Loading branch information
aarnphm committed Jul 17, 2023
1 parent 33aa18d commit acf7abb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ jobs:
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
cache: true
python-version: '3.8'
enable-pep582: false
- name: Install dependencies
run: pdm install -d -G testing -G frameworks
run: |
pdm use -f "3.8"
pdm install -d -G testing -G frameworks
- name: Run framework integration tests
run: pdm run -v integration
- name: Disambiguate coverage filename
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,11 @@ dev = [
_run_test = "pytest --cov=bentoml --cov-report=term-missing --cov-config=pyproject.toml -vv"
tests = { composite = ["_run_test {args:tests}"] }
unit = { composite = ["tests tests/unit -n 3"] }
pre_integration = "pip install --force-reinstall torch --index-url https://download.pytorch.org/whl/cpu"
integration = { composite = ["tests tests/integration -n auto"] }
pre_integration = "pip install torch --index-url https://download.pytorch.org/whl/cpu"
integration = { composite = [
"pip install -U tensorflow",
"tests tests/integration -n auto",
] }
monitoring = { composite = ["tests examples/monitoring/task_classification"] }
e2e = { composite = [
"tests tests/e2e/bento_server_http",
Expand Down

0 comments on commit acf7abb

Please sign in to comment.