@@ -2,22 +2,29 @@ language: python
2
2
dist : xenial # required for Python >= 3.7
3
3
python : 3.7
4
4
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
+
5
19
before_install : pip install --upgrade pip setuptools
6
20
install : pip install -r requirements.txt
7
21
before_script :
8
22
- black --check . || true
9
23
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
10
24
script :
11
25
- 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}
21
28
after_success :
22
29
- python scripts/build_directory_md.py
23
30
- cat DIRECTORY.md
0 commit comments