From 742b6c24f4c8768f11f5b9050e8e82254462a7c1 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 20 Jul 2019 13:28:32 +0200 Subject: [PATCH 1/2] WIP: Run the problematic pytests --- .travis.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index bea512264c19..0eea599231eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,20 @@ 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/abs_min.py + - TEST_FILE=maths/binary_exponentiation.py + - TEST_FILE=maths/lucas_series.py + - TEST_FILE=maths/sieve_of_eratosthenes.py + before_install: pip install --upgrade pip setuptools install: pip install -r requirements.txt before_script: @@ -9,15 +23,8 @@ before_script: - 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 From f86c1adcda16443190e7b33b1bd1fc5a90080b2f Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 21 Jul 2019 08:49:59 +0200 Subject: [PATCH 2/2] Test all of math --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0eea599231eb..7df50697b4a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,10 +11,7 @@ env: - 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/abs_min.py - - TEST_FILE=maths/binary_exponentiation.py - - TEST_FILE=maths/lucas_series.py - - TEST_FILE=maths/sieve_of_eratosthenes.py + - TEST_FILE=maths before_install: pip install --upgrade pip setuptools install: pip install -r requirements.txt