-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
51 lines (47 loc) · 1.16 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
isolated_build = True
envlist =
pre-commit
check-licenses
py{39,310,311}
[gh-actions]
python =
3.9: py39
3.10: pre-commit,check-licenses,py310
3.11: py311
[testenv:pre-commit]
skip_install=true
allowlist_externals=
pre-commit
commands=pre-commit run --all-files --show-diff-on-failure
[testenv:check-licenses]
skip_install=true
deps=
liccheck>=0.7.3,<0.8
allowlist_externals=
poetry
commands_pre=
poetry lock
poetry install --all-extras
poetry show
poetry export -f requirements.txt --output /tmp/requirements.txt
commands=
poetry run liccheck -s license_strategy.ini -r /tmp/requirements.txt -l PARANOID
[testenv:py{39,310,311}]
setenv=PYTHONPATH = {toxinidir}:{toxinidir}
skip_install=true
deps=
pytest>=7.4.0,<8
pytest-cov>=4.1.0,<5
allowlist_externals=
poetry
/bin/bash
/usr/bin/bash
commands_pre=
bash ./scripts/pre-build.sh
poetry build
poetry run pip install dist/fondant-0.1.dev0-py3-none-any.whl[all]
poetry run pip list
bash ./scripts/post-build.sh
commands=
poetry run python -m pytest tests -vv --cov fondant --cov-report term-missing --ignore=tests/integration_tests