Fix Python 3.13 matrix job in unit tests workflow

This commit is contained in:
ChristianZaccaria 2025-07-28 10:28:11 +01:00
parent 034d51e775
commit 1e8c149623
3 changed files with 6 additions and 2 deletions

View file

@ -35,6 +35,8 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/setup-runner
with:
python-version: ${{ matrix.python }}
- name: Run unit tests
run: |

View file

@ -5,6 +5,9 @@
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
PYTHON_VERSION=${PYTHON_VERSION:-3.12}
set -e
# Always run this at the end, even if something fails
@ -14,8 +17,6 @@ cleanup() {
}
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; }
uv python find "$PYTHON_VERSION"

View file

@ -179,6 +179,7 @@ async def test_register_model_existing_different(
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
# 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:
# assert helper.get_provider_model_id(known_model.provider_resource_id) == known_model.provider_model_id