Skip to content

Commit

Permalink
Poetry update fix tomlkit v4.14 v4.13 (#1312) (#1314) (#1316) (#1318) (
Browse files Browse the repository at this point in the history
…#1320)

* Update poetry to fix tomlkit issue (#1306) (#1310)

* Update poetry to fix tomlkit issue (#1306)

* Update poetry to fix tomlkit issue

* tox: use pip to install poetry

* fix poetry.lock file

* poetry add pytest

* Fix poetry lock file

* Fix poetry lock file

Co-authored-by: Meni Yakove <[email protected]>
  • Loading branch information
redhat-qe-bot and myakove committed Jul 27, 2023
1 parent a18df39 commit afc94d5
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 17 deletions.
85 changes: 74 additions & 11 deletions poetry.lock

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

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Download = "https://pypi.org/project/openshift-python-wrapper/"
[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.13"


[tool.poetry.group.tests.dependencies]
pytest = "^7.4.0"

[tool.poetry-dynamic-versioning.substitution]
files = ["VERSION"]

Expand Down
36 changes: 30 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,39,310,311}
envlist = py{38,39,310,311}, unittests, validate-resources, tests
skipsdist = True

[flake8]
Expand All @@ -16,9 +16,33 @@ setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
deps =
pytest
commands =
pip install .
pip install jinja2 PyYaml
pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt'
pip install poetry
poetry install
poetry run pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt'
allowlist_externals =
poetry

[testenv:unittests]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
commands =
pip install poetry
poetry install
poetry run pytest -o log_cli=true tests/unittests
allowlist_externals =
poetry

[testenv:validate-resources]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}
passenv =
KUBECONFIG
commands =
pip install poetry
poetry install
poetry run pytest tests/test_validate_resources.py
allowlist_externals =
poetry

0 comments on commit afc94d5

Please sign in to comment.