-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
48 lines (42 loc) · 1.43 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
# geckodriver howto
# https://askubuntu.com/questions/851401/where-to-find-geckodriver-needed-by-selenium-python-package/863211
# first: check latest version here: https://github.com/mozilla/geckodriver/releases
# wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
# tar -xvzf geckodriver-v0.11.1-linux64.tar.gz
# rm geckodriver-v0.11.1-linux64.tar.gz
# chmod +x geckodriver
# cp geckodriver /usr/local/bin/
# python from source quickstart.
# download src
# sudo apt install libsqlite3-dev
# ./configure --enable-loadable-sqlite-extensions && make && make test && sudo make altinstall
[tox]
envlist = py{37,38,39,310}-django{22,32}, py39-flake8, py39-django32-coverage
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv:py39-flake8]
deps = flake8
commands = flake8
[testenv:py39-django32-coverage]
allowlist_externals = echo
commands =
pip install coverage
coverage erase
coverage run ./manage.py test
coverage report --include='folderless*' --omit='*/tests/*'
coverage html --include='folderless*' --omit='*/tests/*'
echo "opener htmlcov/index.html"
[testenv]
commands = python manage.py test
setenv =
DJANGO_SETTINGS_MODULE=folderless.tests.settings
# DJANGO_SETTINGS_MODULE=formfieldstash.tests.settings_no_headless
PYTHONPATH={toxinidir}
deps =
django22: Django>=2.2,<3
django32: Django>=3.2,<4
django-appconf