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 <ihar.hrachyshka@gmail.com>
This commit is contained in:
Ihar Hrachyshka 2025-03-10 10:34:27 -04:00
parent a9c5d3cd3d
commit b828af60ce
2 changed files with 10 additions and 1 deletions

View file

@ -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()

9
scripts/unit-tests.sh Executable file
View file

@ -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