Skip to content

Commit

Permalink
TEST: Remove dependency on setup.py test from surround cli
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshatBajaj committed Dec 16, 2020
1 parent e811736 commit 3f1abf4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
21 changes: 12 additions & 9 deletions codefresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ steps:
- cd surround

# Remove generated tox directory
- rm -r .tox
- rm -rf .tox

# Install tox
- pip install tox==3.20.1
Expand All @@ -50,17 +50,17 @@ steps:
# Go inside the cli
- cd surround_cli

# Install surround
- python3 setup.py install
# Remove generated tox directory
- rm -rf .tox

# Run tests
- python3 setup.py test
# Install tox
- pip install tox==3.20.1

# Run pylint tests
- pylint setup.py
- find surround_cli/ -iname "*.py" | xargs pylint
# Run tests through tox
- tox

# Run examples
- python setup.py install
- cd ..
- find examples/ -iname "*.py" | xargs pylint
- ls examples/ | xargs -n 1 -I '{}' python3 examples/'{}'/main.py
Expand All @@ -78,7 +78,7 @@ steps:
- cd surround

# Remove generated files from last release
- rm -r dist
- rm -rf dist

# Install required packages
- python3 -m pip install --user --upgrade setuptools wheel twine
Expand Down Expand Up @@ -108,6 +108,9 @@ steps:
commands:
- cd surround_cli

# Remove generated files from last release
- rm -rf dist

# Install required packages
- python3 -m pip install --user --upgrade setuptools wheel twine

Expand Down
1 change: 0 additions & 1 deletion surround/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
packages=[
'surround'
],
test_suite='surround.tests',
license="BSD-3-Clause License",
zip_safe=False,
install_requires=INSTALL_REQUIRES)
1 change: 1 addition & 0 deletions surround_cli/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include VERSION
include requirements.txt
include surround/visualise/*.html.txt
include surround/experiment/web/*.html
include surround/experiment/web/*.ico
Expand Down
11 changes: 11 additions & 0 deletions surround_cli/tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[tox]
envlist = py36, py38
skip_missing_interpreters = True

[testenv]

# run the tests
commands =
python -m unittest discover -p "*_test.py"
pylint setup.py
pylint surround

0 comments on commit 3f1abf4

Please sign in to comment.