mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
Pytest the entire repo (#980)
* Pytest the entire repo * Do each directory for now... * YAML files hate tabs * Add more requirements * pip install opencv-python * Comment out FTP * Add pandas and sklearn to requirements * Comment out FTP, graphs, machine_learning, maths, neural_network, project_euler * Update .travis.yml * Comment out Data structures * if __name__ == "__main__": * pytest --ignore= * pytest . * Update .travis.yml * pytest . --doctest-modules --ignore=${IGNORE} * Ignore --ignore because it just hangs
This commit is contained in:
parent
c85312da89
commit
e6eaa078e2
24
.travis.yml
24
.travis.yml
|
@ -2,13 +2,35 @@ language: python
|
||||||
dist: xenial # required for Python >= 3.7
|
dist: xenial # required for Python >= 3.7
|
||||||
python: 3.7
|
python: 3.7
|
||||||
cache: pip
|
cache: pip
|
||||||
|
before_install: pip install --upgrade pip setuptools
|
||||||
install: pip install -r requirements.txt
|
install: pip install -r requirements.txt
|
||||||
before_script:
|
before_script:
|
||||||
- black --check . || true
|
- black --check . || true
|
||||||
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
script:
|
script:
|
||||||
- mypy --ignore-missing-imports .
|
- mypy --ignore-missing-imports .
|
||||||
- pytest --doctest-modules ./ciphers ./other ./searches ./sorts ./strings
|
#- IGNORE="data_structures,file_transfer_protocol,graphs,machine_learning,maths,neural_network,project_euler"
|
||||||
|
#- pytest . --doctest-modules --ignore=${IGNORE}
|
||||||
|
- pytest --doctest-modules
|
||||||
|
arithmetic_analysis
|
||||||
|
backtracking
|
||||||
|
boolean_algebra
|
||||||
|
ciphers
|
||||||
|
compression
|
||||||
|
conversions
|
||||||
|
digital_image_processing
|
||||||
|
divide_and_conquer
|
||||||
|
dynamic_programming
|
||||||
|
hashes
|
||||||
|
linear_algebra_python
|
||||||
|
matrix
|
||||||
|
networking_flow
|
||||||
|
other
|
||||||
|
searches
|
||||||
|
sorts
|
||||||
|
strings
|
||||||
|
traversals
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- python ./~script.py
|
- python ./~script.py
|
||||||
- cat DIRECTORY.md
|
- cat DIRECTORY.md
|
||||||
|
|
|
@ -37,5 +37,6 @@ def LongestIncreasingSubsequenceLength(v):
|
||||||
return length
|
return length
|
||||||
|
|
||||||
|
|
||||||
v = [2, 5, 3, 7, 11, 8, 10, 13, 6]
|
if __name__ == "__main__":
|
||||||
print(LongestIncreasingSubsequenceLength(v))
|
v = [2, 5, 3, 7, 11, 8, 10, 13, 6]
|
||||||
|
print(LongestIncreasingSubsequenceLength(v))
|
||||||
|
|
|
@ -3,4 +3,9 @@ flake8
|
||||||
matplotlib
|
matplotlib
|
||||||
mypy
|
mypy
|
||||||
numpy
|
numpy
|
||||||
|
opencv-python
|
||||||
|
pandas
|
||||||
pytest
|
pytest
|
||||||
|
sklearn
|
||||||
|
sympy
|
||||||
|
tensorflow
|
||||||
|
|
Loading…
Reference in New Issue
Block a user