-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
32 lines (29 loc) · 1.13 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
[tox]
envlist = py38, py39, py310, py311, py312
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps =
pytest
commands =
# Test tbparse with reduced feature set (without TensorFlow)
pip install -e .[testing]
# May need to clean tox cache if the command below failed.
pytest "{toxinidir}/tests/test_summary_reader/test_edge_cases.py" \
"{toxinidir}/tests/test_summary_reader/test_histogram_torch_sample.py" \
"{toxinidir}/tests/test_summary_reader/test_hparams_torch_sample.py" \
"{toxinidir}/tests/test_summary_reader/test_scalar_torch_sample.py" \
"{toxinidir}/tests/test_summary_reader/test_scalar_new_style_torch_sample.py" \
"{toxinidir}/tests/test_summary_reader/test_text_torch_sample.py" \
"{toxinidir}/tests/test_summary_reader/test_no_tensorflow.py"
# Test tbparse with full feature set (with TensorFlow)
pip install tensorflow
pytest --ignore="{toxinidir}/tests/test_summary_reader/test_no_tensorflow.py"
mypy --ignore-missing-imports tbparse
flake8 tbparse
pylint tbparse