From b828af60ce30b8f07c6c0af2df9a8d9585f92982 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Mon, 10 Mar 2025 10:34:27 -0400 Subject: [PATCH] chore: Add ./scripts/unit-tests.sh Useful for local development. Now you can just trigger the script and not care about specific arguments to pass to run unit tests. Signed-off-by: Ihar Hrachyshka --- .github/workflows/unit-tests.yml | 2 +- scripts/unit-tests.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 scripts/unit-tests.sh diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 28e749aff..c1a2dab5f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -23,7 +23,7 @@ jobs: - name: Run unit tests run: | - uv run -p 3.10.16 --with . --with ".[dev]" --with ".[test]" pytest -s -v tests/unit/ --junitxml=pytest-report.xml + ./scripts/unit-tests.sh - name: Upload test results if: always() diff --git a/scripts/unit-tests.sh b/scripts/unit-tests.sh new file mode 100755 index 000000000..83850dc61 --- /dev/null +++ b/scripts/unit-tests.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the terms described in the LICENSE file in +# the root directory of this source tree. + +uv run -p 3.10.16 --with . --with ".[dev]" --with ".[test]" pytest -s -v tests/unit/ --junitxml=pytest-report.xml