@@ -4,11 +4,37 @@ 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=pytest file_transfer_protocol/ftp_client_server.py
14
+ # before_script: true
15
+ # script: pytest ${FILE} --doctest-modules
16
+ - env : FILE=pytest file_transfer_protocol/ftp_send_receive.py
17
+ before_script : true
18
+ script : pytest ${FILE} --doctest-modules
19
+ - env : FILE=pytest machine_learning/linear_regression.py
20
+ before_script : true
21
+ script : pytest ${FILE} --doctest-modules
22
+ - env : FILE=pytest machine_learning/perceptron.py
23
+ before_script : true
24
+ script : pytest ${FILE} --doctest-modules
25
+ - env : FILE=pytest machine_learning/random_forest_classification/random_forest_classification.py
26
+ before_script : true
27
+ script : pytest ${FILE} --doctest-modules
28
+ - env : FILE=pytest machine_learning/random_forest_regression/random_forest_regression.py
29
+ before_script : true
30
+ script : pytest ${FILE} --doctest-modules
31
+ allow_failures :
32
+ - before_script : true
7
33
before_script :
8
34
- black --check . || true
9
35
- flake8 . --count --select=E9,F401,F63,F7,F82 --show-source --statistics
10
36
script :
11
- - scripts/validate_filenames.py # no uppercase and no spaces
37
+ - scripts/validate_filenames.py # no uppercase, no spaces, in a directory
12
38
- mypy --ignore-missing-imports .
13
39
- pytest . --doctest-modules
14
40
--ignore=file_transfer_protocol/ftp_send_receive.py
0 commit comments