"tools/git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "3e92d169de726ac01b060df998293dfce2dabcae"
Commit fcac394a authored by Neelay Shah's avatar Neelay Shah Committed by GitHub
Browse files

test: add basic support for pytest codeblocks (#117)

parent 1fd24d78
...@@ -23,13 +23,12 @@ limitations under the License. ...@@ -23,13 +23,12 @@ limitations under the License.
[![GitHub Release](https://img.shields.io/github/v/release/ai-dynamo/dynamo)](https://github.com/ai-dynamo/dynamo/releases/latest) [![GitHub Release](https://img.shields.io/github/v/release/ai-dynamo/dynamo)](https://github.com/ai-dynamo/dynamo/releases/latest)
Dynamo is a flexible, component based, data center scale Dynamo is a flexible, component based, data center scale inference
inference serving framework designed to leverage the strengths of the serving framework designed to meet the demands of complex use cases
standalone Dynamo Inference Server while expanding its capabilities including those of Generative AI. It is designed to enable developers
to meet the demands of complex use cases including those of Generative to implement and customize routing, load balancing, scaling and
AI. It is designed to enable developers to implement and customize workflow definitions at the data center scale without sacrificing
routing, load balancing, scaling and workflow definitions at the data performance or ease of use.
center scale without sacrificing performance or ease of use.
> [!NOTE] > [!NOTE]
> This project is currently in the alpha / experimental / > This project is currently in the alpha / experimental /
...@@ -58,7 +57,10 @@ We provide 3 types of builds: ...@@ -58,7 +57,10 @@ We provide 3 types of builds:
For example, if you want to build a container for the `STANDARD` backends you can run For example, if you want to build a container for the `STANDARD` backends you can run
`./container/build.sh` <!--pytest.mark.skip-->
```bash
./container/build.sh
```
Please see the instructions in the corresponding example for specific build instructions. Please see the instructions in the corresponding example for specific build instructions.
...@@ -71,24 +73,37 @@ The run script offers a few common workflows: ...@@ -71,24 +73,37 @@ The run script offers a few common workflows:
1. Running a command in a container and exiting. 1. Running a command in a container and exiting.
``` <!--pytest.mark.skip-->
```bash
./container/run.sh -- python3 -c "import dynamo.runtime; help(dynamo.runtime)" ./container/run.sh -- python3 -c "import dynamo.runtime; help(dynamo.runtime)"
``` ```
<!--
2. Starting an interactive shell. # This tests the above the line but from within the container
# using pytest-codeblocks
```bash
python3 -c "import dynamo.runtime; help(dynamo.runtime)"
``` ```
-- >
2. Starting an interactive shell.
<!--pytest.mark.skip-->
```bash
./container/run.sh -it ./container/run.sh -it
``` ```
3. Mounting the local workspace and Starting an interactive shell. 3. Mounting the local workspace and Starting an interactive shell.
``` <!--pytest.mark.skip-->
```bash
./container/run.sh -it --mount-workspace ./container/run.sh -it --mount-workspace
``` ```
The last command also passes common environment variables ( ```-e The last command also passes common environment variables ( `-e
HF_TOKEN```) and mounts common directories such as ```/tmp:/tmp```, HF_TOKEN` ) and mounts common directories such as `/tmp:/tmp`,
```/mnt:/mnt```. `/mnt:/mnt`.
Please see the instructions in the corresponding example for specific Please see the instructions in the corresponding example for specific
deployment instructions. deployment instructions.
......
...@@ -17,6 +17,7 @@ pyright ...@@ -17,6 +17,7 @@ pyright
pytest pytest
pytest-asyncio pytest-asyncio
pytest-benchmark pytest-benchmark
pytest-codeblocks
pytest-cov pytest-cov
pytest-md-report pytest-md-report
pytest-mypy pytest-mypy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment