Skip to content

Commit

Permalink
test: uv
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Nov 12, 2024
1 parent fe192ec commit fbbfc40
Show file tree
Hide file tree
Showing 6 changed files with 203 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/python-uv/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
Empty file added examples/python-uv/README.md
Empty file.
1 change: 1 addition & 0 deletions examples/python-uv/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello from Python-Uv")
14 changes: 14 additions & 0 deletions examples/python-uv/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[project]
name = "python-uv"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"flask>=3.0.3",
]

[dependency-groups]
dev = [
"pytest>=8.3.3",
]
180 changes: 180 additions & 0 deletions examples/python-uv/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions tests/docker_run_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,13 @@ async fn test_python_poetry() {
assert!(output.contains("Hello from Python-Poetry"));
}

#[tokio::test]
async fn test_python_poetry() {

Check failure on line 1036 in tests/docker_run_tests.rs

View workflow job for this annotation

GitHub Actions / Lints

the name `test_python_poetry` is defined multiple times
let name = simple_build("./examples/python-uv").await.unwrap();
let output = run_image(&name, None).await;
assert!(output.contains("Hello from Python-Uv"));
}

#[tokio::test]
async fn test_python_pdm() {
let name = simple_build("./examples/python-pdm").await.unwrap();
Expand Down

0 comments on commit fbbfc40

Please sign in to comment.