Skip to content

Commit

Permalink
Move tox.ini to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-afanasiev committed Dec 11, 2024
1 parent 5bc4585 commit aec46f5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: tests
run: |
source .venv/bin/activate
tox -e py310
tox -e 3.10
- name: Upload coverage report
uses: actions/upload-artifact@v4
Expand Down
33 changes: 29 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
dependencies = []
version = "5.6.0"

[project.optional-dependencies]
[dependency-groups]
test = [
"pytest>=8.3.2",
"coverage>=7.6.3",
Expand Down Expand Up @@ -38,8 +39,32 @@ skip-magic-trailing-comma = true


[tool.pytest.ini_options]
pythonpath = [
"src",
]
pythonpath = ["src"]
testpaths = ["tests"]


[tool.tox]
requires = ["tox>=4"]
env_list = ["3.10"]
skipsdist = true
skip_install = true


[tool.tox.env_run_base]
description = "Run tests under {base_python}"

[tool.tox.env."3.10"]
dependency_groups = ["test"]
deps = [
"-r src/onprem/requirements.txt",
]
command = [[
"pytest",
"tests",
"-v",
"--cov=src/",
"--cov-report=term-missing",
"--cov-report=xml:coverage.xml",
"--junitxml=report.xml",
{ replace = "posargs", extend = true}
]]
30 changes: 0 additions & 30 deletions tox.ini

This file was deleted.

0 comments on commit aec46f5

Please sign in to comment.