-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
54 lines (49 loc) · 1.23 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
52
53
54
[tox]
envlist =
py{39,310,311}-{base,stable}
py311-{lowest}
project
[testenv]
# Ignore all "not installed in testenv" warnings.
whitelist_externals = *
passenv = PALS_DB_URL
skip_install = true
recreate = true
deps =
-e .[tests]
stable: -r stable-requirements.txt
lowest: sqlalchemy<2
lowest: psycopg2-binary
commands =
lowest: pip uninstall -y psycopg psycopg-binary
stable: pip uninstall -y psycopg psycopg-binary
pip --version
# Output installed versions to compare with previous test runs in case a dependency's change
# breaks things for our build.
pip freeze
py.test \
# feed a blank file so that a user's default pytest.ini doesn't get used
-c .ci/pytest.ini \
-ra \
--tb native \
--strict-markers \
--cov pals \
--cov-config .coveragerc \
--cov-report xml \
--no-cov-on-fail \
--junit-xml={toxinidir}/.ci/test-reports/{envname}.pytests.xml \
pals/tests
[testenv:project]
basepython = python3.11
skip_install = true
usedevelop = false
deps =
check-manifest
flake8
twine
commands =
pip install -e .[tests]
check-manifest
python setup.py sdist
twine check dist/*
flake8 pals