Skip to content

WIP: Run the problematic pytests #1055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@ language: python
dist: xenial # required for Python >= 3.7
python: 3.7
cache: pip
env:
- TEST_FILE=data_structures/stacks/balanced_parentheses.py
- TEST_FILE=data_structures/stacks/infix_to_postfix_conversion.py
- TEST_FILE=file_transfer_protocol/ftp_send_receive.py
- TEST_FILE=file_transfer_protocol/ftp_client_server.py
- TEST_FILE=machine_learning/linear_regression.py
- TEST_FILE=machine_learning/perceptron.py
- TEST_FILE=machine_learning/random_forest_classification/random_forest_classification.py
- TEST_FILE=machine_learning/random_forest_regression/random_forest_regression.py
- TEST_FILE=maths

before_install: pip install --upgrade pip setuptools
install: pip install -r requirements.txt
before_script:
- black --check . || true
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
script:
- mypy --ignore-missing-imports .
- pytest . --doctest-modules
--ignore=data_structures/stacks/balanced_parentheses.py
--ignore=data_structures/stacks/infix_to_postfix_conversion.py
--ignore=file_transfer_protocol/ftp_send_receive.py
--ignore=file_transfer_protocol/ftp_client_server.py
--ignore=machine_learning/linear_regression.py
--ignore=machine_learning/perceptron.py
--ignore=machine_learning/random_forest_classification/random_forest_classification.py
--ignore=machine_learning/random_forest_regression/random_forest_regression.py
- echo "pytest --doctest-modules ${TEST_FILE}"
- pytest --doctest-modules ${TEST_FILE}
after_success:
- python scripts/build_directory_md.py
- cat DIRECTORY.md