Skip to content

Commit

Permalink
install git during exexuting the tox
Browse files Browse the repository at this point in the history
  • Loading branch information
falibabaei authored Dec 17, 2024
1 parent c28b638 commit b02f5b9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,52 @@ minversion = 3.25.0
isolated_build = True
envlist = qc.sty,qc.cov,qc.sec,py39

[testenv]
install_command = pip install -U {opts} {packages}
commands = pytest --numprocesses=auto {posargs}
[tox]
minversion = 3.25.0
isolated_build = True
envlist = qc.sty,qc.cov,qc.sec,py39

[testenv]
install_command = pip install -U {opts} {packages}
commands = pytest --numprocesses=auto {posargs}
allowlist_externals =
mkdir
git
apt-get
commands_pre =
apt-get update && apt-get install -y git
passenv =
RCLONERCLONE_CONFIG_RSHARE_VENDOR
RCLONE_CONFIG
RCLONE_CONFIG_RSHARE_PASS
RCLONE_CONFIG_RSHARE_URL
RCLONE_CONFIG_RSHARE_TYPE
RCLONE_CONFIG_RSHARE_USER
setenv =
OS_TEST_TIMEOUT=240
deps = -r{toxinidir}/requirements-test.txt
git+https://github.com/m-team-kit/uSplit.git@main




[testenv:qc.sty]
commands =
flake8 --statistics --tee --output-file={toxinidir}/flake8.log \
--format=pylint ai4life api data tests

[testenv:qc.cov]
commands =
pytest --cov=api --cov=ai4life --cov-report=html:{toxinidir}/htmlcov --cov-report=term-missing tests

[testenv:qc.sec]
commands =
mkdir -p {toxinidir}/bandit
bandit -r ai4life api -x tests -o {toxinidir}/bandit/index.html

passenv =
RCLONERCLONE_CONFIG_RSHARE_VENDOR
RCLONE_CONFIG
Expand Down

0 comments on commit b02f5b9

Please sign in to comment.