Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
fcac394a
"tools/git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "3e92d169de726ac01b060df998293dfce2dabcae"
Commit
fcac394a
authored
Mar 12, 2025
by
Neelay Shah
Committed by
GitHub
Mar 12, 2025
Browse files
test: add basic support for pytest codeblocks (#117)
parent
1fd24d78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
README.md
README.md
+29
-14
container/deps/requirements.test.txt
container/deps/requirements.test.txt
+1
-0
No files found.
README.md
View file @
fcac394a
...
@@ -23,13 +23,12 @@ limitations under the License.
...
@@ -23,13 +23,12 @@ limitations under the License.
[

](https://github.com/ai-dynamo/dynamo/releases/latest)
[

](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.
...
...
container/deps/requirements.test.txt
View file @
fcac394a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment