forked from crowdsecurity/crowdsec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: package docker tests with uv (crowdsecurity#3429)
- Loading branch information
Showing
31 changed files
with
1,080 additions
and
1,101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[project] | ||
name = "crowdsec-docker-tests" | ||
version = "0.1.0" | ||
description = "Docker tests for Crowdsec" | ||
readme = "README.md" | ||
requires-python = ">=3.12" | ||
dependencies = [ | ||
"pytest>=8.3.4", | ||
"pytest-cs", | ||
"pytest-dotenv>=0.5.2", | ||
"pytest-xdist>=3.6.1", | ||
] | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"ipdb>=0.13.13", | ||
"ruff>=0.9.3", | ||
] | ||
|
||
[tool.uv.sources] | ||
pytest-cs = { git = "https://github.com/crowdsecurity/pytest-cs" } | ||
|
||
[tool.ruff] | ||
|
||
line-length = 120 | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
"I", # isort | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"UP", # pyupgrade | ||
"C90", # macabe | ||
] | ||
|
||
ignore = [ | ||
"B008", # do not perform function calls in argument defaults | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
|
||
pytest_plugins = ("cs",) | ||
|
||
|
||
def pytest_configure(config): | ||
config.addinivalue_line( | ||
'markers', 'docker: mark tests for lone or manually orchestrated containers' | ||
) | ||
config.addinivalue_line( | ||
'markers', 'compose: mark tests for docker compose projects' | ||
) | ||
config.addinivalue_line("markers", "docker: mark tests for lone or manually orchestrated containers") | ||
config.addinivalue_line("markers", "compose: mark tests for docker compose projects") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.