-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from mochipon/fix/cosmetic_cicd
CI/CD Fixes
- Loading branch information
Showing
3 changed files
with
16 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,30 @@ | ||
[tox] | ||
isolated_build = true | ||
envlist = py37, py38, py39, lint, format | ||
envlist = py37, py38, py39, lint | ||
|
||
[gh-actions] | ||
python = | ||
3.9: py39 | ||
3.9: py39, lint | ||
3.8: py38 | ||
3.7: py37 | ||
|
||
[testenv:lint] | ||
whitelist_externals = | ||
isort | ||
black | ||
flake8 | ||
poetry | ||
mkdocs | ||
twine | ||
extras = | ||
test | ||
doc | ||
dev | ||
whitelist_externals = poetry | ||
commands = | ||
isort pysesame3 | ||
black pysesame3 tests | ||
flake8 pysesame3 tests | ||
poetry build | ||
mkdocs build | ||
twine check dist/* | ||
poetry install -E doc | ||
poetry run isort pysesame3 | ||
poetry run black pysesame3 tests | ||
poetry run flake8 pysesame3 tests | ||
poetry run poetry build | ||
poetry run mkdocs build | ||
poetry run twine check dist/* | ||
|
||
[testenv] | ||
whitelist_externals = pytest | ||
extras = | ||
test | ||
whitelist_externals = poetry | ||
passenv = * | ||
setenv = | ||
PYTHONPATH = {toxinidir} | ||
PYTHONWARNINGS = ignore | ||
commands = | ||
pytest -s --cov=pysesame3 --cov-append --cov-report=xml --cov-report term-missing tests | ||
poetry install | ||
poetry run pytest -s --cov=pysesame3 --cov-append --cov-report=xml --cov-report term-missing tests |