mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 22:39:41 +00:00
Fix Python 3.13 matrix job in unit tests workflow
This commit is contained in:
parent
034d51e775
commit
1e8c149623
3 changed files with 6 additions and 2 deletions
2
.github/workflows/unit-tests.yml
vendored
2
.github/workflows/unit-tests.yml
vendored
|
|
@ -35,6 +35,8 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/actions/setup-runner
|
uses: ./.github/actions/setup-runner
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
#
|
#
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
|
PYTHON_VERSION=${PYTHON_VERSION:-3.12}
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Always run this at the end, even if something fails
|
# Always run this at the end, even if something fails
|
||||||
|
|
@ -14,8 +17,6 @@ cleanup() {
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
PYTHON_VERSION=${PYTHON_VERSION:-3.12}
|
|
||||||
|
|
||||||
command -v uv >/dev/null 2>&1 || { echo >&2 "uv is required but it's not installed. Exiting."; exit 1; }
|
command -v uv >/dev/null 2>&1 || { echo >&2 "uv is required but it's not installed. Exiting."; exit 1; }
|
||||||
|
|
||||||
uv python find "$PYTHON_VERSION"
|
uv python find "$PYTHON_VERSION"
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,7 @@ async def test_register_model_existing_different(
|
||||||
async def test_register_model_during_init(helper: ModelRegistryHelper, known_model: Model) -> None:
|
async def test_register_model_during_init(helper: ModelRegistryHelper, known_model: Model) -> None:
|
||||||
assert helper.get_provider_model_id(known_model.provider_resource_id) == known_model.provider_model_id
|
assert helper.get_provider_model_id(known_model.provider_resource_id) == known_model.provider_model_id
|
||||||
|
|
||||||
|
|
||||||
# TODO: unregister_model functionality was removed/disabled by https://github.com/meta-llama/llama-stack/pull/2916
|
# TODO: unregister_model functionality was removed/disabled by https://github.com/meta-llama/llama-stack/pull/2916
|
||||||
# async def test_unregister_model_during_init(helper: ModelRegistryHelper, known_model: Model) -> None:
|
# async def test_unregister_model_during_init(helper: ModelRegistryHelper, known_model: Model) -> None:
|
||||||
# assert helper.get_provider_model_id(known_model.provider_resource_id) == known_model.provider_model_id
|
# assert helper.get_provider_model_id(known_model.provider_resource_id) == known_model.provider_model_id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue