mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-23 15:09:49 +00:00
Travis CI: Run each failing pytest in allow_failures mode (#1087)
* Travis CI: Run failing pytest in allow_failures mode * Sync with master * Sync with master
This commit is contained in:
parent
7cf3db1843
commit
561a41464f
28
.travis.yml
28
.travis.yml
@ -4,11 +4,37 @@ python: 3.7
|
|||||||
cache: pip
|
cache: pip
|
||||||
before_install: pip install --upgrade pip setuptools
|
before_install: pip install --upgrade pip setuptools
|
||||||
install: pip install -r requirements.txt
|
install: pip install -r requirements.txt
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: "Main tests"
|
||||||
|
# The following files currently fail pytests. See issues: #1016, #1044, #1080
|
||||||
|
# Here they are run allow_failures mode and when each passes pytest, it can be
|
||||||
|
# removed BOTH lists below. Complex now but simple once all files pass pytest.
|
||||||
|
# - env: FILE=pytest file_transfer_protocol/ftp_client_server.py
|
||||||
|
# before_script: true
|
||||||
|
# script: pytest ${FILE} --doctest-modules
|
||||||
|
- env: FILE=pytest file_transfer_protocol/ftp_send_receive.py
|
||||||
|
before_script: true
|
||||||
|
script: pytest ${FILE} --doctest-modules
|
||||||
|
- env: FILE=pytest machine_learning/linear_regression.py
|
||||||
|
before_script: true
|
||||||
|
script: pytest ${FILE} --doctest-modules
|
||||||
|
- env: FILE=pytest machine_learning/perceptron.py
|
||||||
|
before_script: true
|
||||||
|
script: pytest ${FILE} --doctest-modules
|
||||||
|
- env: FILE=pytest machine_learning/random_forest_classification/random_forest_classification.py
|
||||||
|
before_script: true
|
||||||
|
script: pytest ${FILE} --doctest-modules
|
||||||
|
- env: FILE=pytest machine_learning/random_forest_regression/random_forest_regression.py
|
||||||
|
before_script: true
|
||||||
|
script: pytest ${FILE} --doctest-modules
|
||||||
|
allow_failures:
|
||||||
|
- before_script: true
|
||||||
before_script:
|
before_script:
|
||||||
- black --check . || true
|
- black --check . || true
|
||||||
- flake8 . --count --select=E9,F401,F63,F7,F82 --show-source --statistics
|
- flake8 . --count --select=E9,F401,F63,F7,F82 --show-source --statistics
|
||||||
script:
|
script:
|
||||||
- scripts/validate_filenames.py # no uppercase and no spaces
|
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
|
||||||
- mypy --ignore-missing-imports .
|
- mypy --ignore-missing-imports .
|
||||||
- pytest . --doctest-modules
|
- pytest . --doctest-modules
|
||||||
--ignore=file_transfer_protocol/ftp_send_receive.py
|
--ignore=file_transfer_protocol/ftp_send_receive.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user