Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
boromir674 committed Oct 23, 2023
1 parent 0f462c7 commit f16b643
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
40 changes: 38 additions & 2 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pytest-cov = {version = "^4.1.0", optional = true}
pytest-explicit = {version = "^1.0.1", optional = true}

matplotlib = {version = "~3.7", optional = true}
pytest-xdist = {version = "^3.3.1", optional = true, extras = ["test"]}


[tool.poetry.extras]
Expand Down
16 changes: 12 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,28 @@ setenv =
MYPYPATH = {toxinidir}{/}src{/}stubs
black,lint,isort: LINT_ARGS = "src tests scripts"
# PYTHONPATH = {toxinidir}{/}tests
extras = # by default add the 'test' Extras in case we do an installation
test # children envs need to verride if they don't the 'test' Extras
commands =
# --cov-config pyproject.toml
pytest -ra --cov --cov-report=term-missing \
--cov-report=html:{envdir}/htmlcov --cov-context=test \
--cov-report=xml:{toxworkdir}/coverage.{envname}.xml \
tests
; {posargs:-n auto} tests
{posargs:-n auto} tests

## CI oriented Envs integrating with GH Actions Tox Plugin ##

# Designed being invoked from a dev machine
# DEV generates -> py311-dev-linux, py311-dev-macos, py311-dev-windows, etc
[testenv:{py311, py310, py39, py38, pypy3}-dev{, -linux, -macos, -windows}]
description = Install in 'edit' mode, Run Test Suite and gather Coverage
usedevelop = true

####

# DEV -> Default command does not do Coverage
[testenv:dev]
description = Using `python3` in PATH: Install in 'edit' mode & Test
basepython = {env:TOXPYTHON:python3}
extras = test
usedevelop = true
commands =
pytest -ra {toxinidir}{/}tests {posargs:-vvs}
Expand Down

0 comments on commit f16b643

Please sign in to comment.