Skip to content

Commit af9dc4f

Browse files
author
Carl Crowder
committed
[#376] Attempting to fix CI by side-stepping tox behaviour to refuse to install test dependencies...
1 parent b405983 commit af9dc4f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/test.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
#!/bin/bash
2+
# TODO: The following code duplicates requirements from pyproject.toml for test dependencies. This is because during
3+
# the CI run, tox builds a package using the pyproject.toml and installs it; this means that it does not install
4+
# dev-dependencies including the ones needed for tests to pass. Frustratingly, the "install extras" feature of
5+
# tox does not appear to work to solve this by putting the test deps into an optional grouping. For now, this
6+
# hardcoded list will have to do in order to fix the CI... see #376
7+
pip install pytest pytest-cov \
8+
"django-tables2>=2.6.0" \
9+
"factory-boy>=3.3.0" \
10+
"django-tastypie>=0.14.6" \
11+
"djangorestframework>=3.13.1"
12+
213
python pylint_django/tests/test_func.py -v "$@"

0 commit comments

Comments
 (0)