@@ -4,11 +4,43 @@ python: 3.7
4
4
cache : pip
5
5
before_install : pip install --upgrade pip setuptools
6
6
install : pip install -r requirements.txt
7
+ matrix :
8
+ include :
9
+ - name : " Main tests"
10
+ # The following files currently fail pytests. See issues: #1016, #1044, #1080
11
+ # Here they are run allow_failures mode and when each passes pytest, it can be
12
+ # removed BOTH lists below. Complex now but simple once all files pass pytest.
13
+ - env : FILE=data_structures/stacks/balanced_parentheses.py
14
+ before_script : true # override main
15
+ script : pytest ${FILE} --doctest-modules
16
+ - env : FILE=data_structures/stacks/infix_to_postfix_conversion.py
17
+ before_script : true
18
+ script : pytest ${FILE} --doctest-modules
19
+ # - env: FILE=file_transfer_protocol/ftp_client_server.py
20
+ # before_script: true
21
+ # script: pytest ${FILE} --doctest-modules
22
+ - env : FILE=file_transfer_protocol/ftp_send_receive.py
23
+ before_script : true
24
+ script : pytest ${FILE} --doctest-modules
25
+ - env : FILE=machine_learning/linear_regression.py
26
+ before_script : true
27
+ script : pytest ${FILE} --doctest-modules
28
+ - env : FILE=machine_learning/perceptron.py
29
+ before_script : true
30
+ script : pytest ${FILE} --doctest-modules
31
+ - env : FILE=machine_learning/random_forest_classification/random_forest_classification.py
32
+ before_script : true
33
+ script : pytest ${FILE} --doctest-modules
34
+ - env : FILE=machine_learning/random_forest_regression/random_forest_regression.py
35
+ before_script : true
36
+ script : pytest ${FILE} --doctest-modules
37
+ allow_failures :
38
+ - before_script : true
7
39
before_script :
8
40
- black --check . || true
9
41
- flake8 . --count --select=E9,F401,F63,F7,F82 --show-source --statistics
10
42
script :
11
- - scripts/validate_filenames.py # no uppercase and no spaces
43
+ - scripts/validate_filenames.py # no uppercase, no spaces, in a directory
12
44
- mypy --ignore-missing-imports .
13
45
- pytest . --doctest-modules
14
46
--ignore=data_structures/stacks/balanced_parentheses.py
@@ -19,6 +51,7 @@ script:
19
51
--ignore=machine_learning/perceptron.py
20
52
--ignore=machine_learning/random_forest_classification/random_forest_classification.py
21
53
--ignore=machine_learning/random_forest_regression/random_forest_regression.py
54
+
22
55
after_success :
23
56
- scripts/build_directory_md.py > DIRECTORY.md
24
57
- cat DIRECTORY.md
0 commit comments