Skip to content

Commit 742b6c2

Browse files
committed
WIP: Run the problematic pytests
1 parent 93fdc9f commit 742b6c2

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.travis.yml

+16-9
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,29 @@ language: python
22
dist: xenial # required for Python >= 3.7
33
python: 3.7
44
cache: pip
5+
env:
6+
- TEST_FILE=data_structures/stacks/balanced_parentheses.py
7+
- TEST_FILE=data_structures/stacks/infix_to_postfix_conversion.py
8+
- TEST_FILE=file_transfer_protocol/ftp_send_receive.py
9+
- TEST_FILE=file_transfer_protocol/ftp_client_server.py
10+
- TEST_FILE=machine_learning/linear_regression.py
11+
- TEST_FILE=machine_learning/perceptron.py
12+
- TEST_FILE=machine_learning/random_forest_classification/random_forest_classification.py
13+
- TEST_FILE=machine_learning/random_forest_regression/random_forest_regression.py
14+
- TEST_FILE=maths/abs_min.py
15+
- TEST_FILE=maths/binary_exponentiation.py
16+
- TEST_FILE=maths/lucas_series.py
17+
- TEST_FILE=maths/sieve_of_eratosthenes.py
18+
519
before_install: pip install --upgrade pip setuptools
620
install: pip install -r requirements.txt
721
before_script:
822
- black --check . || true
923
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
1024
script:
1125
- mypy --ignore-missing-imports .
12-
- pytest . --doctest-modules
13-
--ignore=data_structures/stacks/balanced_parentheses.py
14-
--ignore=data_structures/stacks/infix_to_postfix_conversion.py
15-
--ignore=file_transfer_protocol/ftp_send_receive.py
16-
--ignore=file_transfer_protocol/ftp_client_server.py
17-
--ignore=machine_learning/linear_regression.py
18-
--ignore=machine_learning/perceptron.py
19-
--ignore=machine_learning/random_forest_classification/random_forest_classification.py
20-
--ignore=machine_learning/random_forest_regression/random_forest_regression.py
26+
- echo "pytest --doctest-modules ${TEST_FILE}"
27+
- pytest --doctest-modules ${TEST_FILE}
2128
after_success:
2229
- python scripts/build_directory_md.py
2330
- cat DIRECTORY.md

0 commit comments

Comments
 (0)