8000 First cut at abandoning tox · plotly/plotly.py@4608f1e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4608f1e

Browse files
committed
First cut at abandoning tox
1 parent 841da65 commit 4608f1e

File tree

6 files changed

+138
-38
lines changed

6 files changed

+138
-38
lines changed

.circleci/config.yml

Lines changed: 60 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,36 @@ jobs:
1818
python-3.6-core:
1919
docker:
2020
- image: circleci/python:3.6-stretch-node-browsers
21-
environment:
22-
PLOTLY_TOX_PYTHON_36: python3.6
2321

2422
steps:
2523
- checkout
2624
- run:
27-
name: Install tox
28-
command: "sudo pip install tox"
25+
name: Install dependencies
26+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_36_core.txt"
2927
- run:
30-
name: Test with tox
31-
command: "cd packages/python/plotly; tox -e py36-core"
28+
name: Test core
29+
command: "cd packages/python/plotly; pytest plotly/tests/test_core"
3230
no_output_timeout: 20m
3331

3432
python-3.7-core:
3533
docker:
3634
- image: circleci/python:3.7-stretch-node-browsers
37-
environment:
38-
PLOTLY_TOX_PYTHON_37: python3.7
3935

4036
steps:
4137
- checkout
4238
- run:
43-
name: Install tox
44-
command: "sudo pip install tox"
39+
name: Install dependencies
40+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_37_core.txt"
4541
- run:
46-
name: Test with tox
47-
command: "cd packages/python/plotly; tox -e py37-core"
42+
name: Test core
43+
command: "cd packages/python/plotly; pytest plotly/tests/test_core"
4844
no_output_timeout: 20m
45+
- run:
46+
name: Test dependencdies not imported
47+
command: "cd packages/python/plotly; pytest -x test_init/test_dependencies_not_imported.py"
48+
- run:
49+
name: Test lazy imports
50+
command: "cd packages/python/plotly; pytest -x test_init/test_lazy_imports.py"
4951

5052
python-3.7-percy:
5153
docker:
@@ -83,50 +85,68 @@ jobs:
8385
python-3.6-optional:
8486
docker:
8587
- image: circleci/python:3.6-stretch-node-browsers
86-
environment:
87-
PLOTLY_TOX_PYTHON_36: python3.6
8888

8989
steps:
9090
- checkout
9191
- run:
92-
name: Install tox
93-
command: "sudo pip install tox"
92+
name: Install dependencies
93+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_36_optional.txt"
94+
- run:
95+
name: Test core
96+
command: "cd packages/python/plotly; pytest plotly/tests/test_core"
97+
no_output_timeout: 20m
98+
- run:
99+
name: Test optional
100+
command: "cd packages/python/plotly; pytest plotly/tests/test_optional"
101+
no_output_timeout: 20m
94102
- run:
95-
name: Test with tox
96-
command: "cd packages/python/plotly; tox -e py36-optional"
103+
name: Test utils
104+
command: "cd packages/python/plotly; pytest _plotly_utils/tests/"
105+
no_output_timeout: 20m
106+
- run:
107+
name: Test io
108+
command: "cd packages/python/plotly; pytest plotly/tests/test_io"
97109
no_output_timeout: 20m
98110

99111
python-3.7-optional:
100112
docker:
101113
- image: circleci/python:3.7-stretch-node-browsers
102-
environment:
103-
PLOTLY_TOX_PYTHON_37: python3.7
104114

105115
steps:
106116
- checkout
107117
- run:
108-
name: Install tox
109-
command: "sudo pip install tox"
118+
name: Install dependencies
119+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_37_optional.txt"
110120
- run:
111-
name: Test with tox
112-
command: "cd packages/python/plotly; tox -e py37-optional"
121+
name: Test core
122+
command: "cd packages/python/plotly; pytest plotly/tests/test_core"
123+
no_output_timeout: 20m
124+
- run:
125+
name: Test optional
126+
command: "cd packages/python/plotly; pytest plotly/tests/test_optional"
127+
no_output_timeout: 20m
128+
- run:
129+
name: Test utils
130+
command: "cd packages/python/plotly; pytest _plotly_utils/tests/"
131+
no_output_timeout: 20m
132+
- run:
133+
name: Test io
134+
command: "cd packages/python/plotly; pytest plotly/tests/test_io"
113135
no_output_timeout: 20m
114136

115137
# Chart studio
116138
python-3.7-plot_ly:
117139
docker:
118140
- image: circleci/python:3.7-stretch-node-browsers
119-
environment:
120-
PLOTLY_TOX_PYTHON_37: python3.7
121141

122142
steps:
123143
- checkout
124144
- run:
125-
name: Install tox
126-
command: "sudo pip install tox"
145+
name: Install dependencies
146+
command: "cd packages/python; sudo pip install -r ./chart-studio/test_requirements/requirements_37.txt"
127147
- run:
128-
name: Test with tox
129-
command: "cd packages/python/chart-studio; tox -e py37-plot_ly"
148+
name: Tests
149+
command: "cd packages/python/chart-studio; pytest -x chart_studio/tests/"
130150
no_output_timeout: 20m
131151

132152
python-3-7-orca:
@@ -164,27 +184,29 @@ jobs:
164184
docker:
165185
- image: circleci/python:3.7-stretch-node-browsers
166186
environment:
167-
PLOTLY_TOX_PYTHON_37: python3.7
168187
LANG: en_US.UTF-8
169188

170189
steps:
171190
- checkout
172191
- run:
173-
name: Install tox
174-
command: "sudo pip install retrying tox black inflect"
192+
name: Install dependencies
193+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_37_core.txt black inflect"
175194
- run:
176195
name: Update jupyterlab-plotly version
177196
command: "cd packages/python/plotly; python setup.py updateplotlywidgetversion"
178197
- run:
179198
name: Update plotly.js to dev
180199
command: "cd packages/python/plotly; python setup.py updateplotlyjsdev"
181200
- run:
182-
name: Test with tox
183-
command: |
184-
cd packages/python/plotly
185-
locale
186-
tox -e py37-core -- -k 'not nodev'
201+
name: Test core
202+
command: "cd packages/python/plotly; locale; pytest -k 'not nodev' plotly/tests/test_core"
187203
no_output_timeout: 20m
204+
- run:
205+
name: Test dependencdies not imported
206+
command: "cd packages/python/plotly; locale; pytest -x -k 'not nodev' test_init/test_dependencies_not_imported.py"
207+
- run:
208+
name: Test lazy imports
209+
command: "cd packages/python/plotly; locale; pytest -x -k 'not nodev' test_init/test_lazy_imports.py"
188210
- run:
189211
name: Commit
190212
command: |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
decorator==4.0.9
2+
nose==1.3.7
3+
requests==2.12.4
4+
six==1.10.0
5+
pytz==2016.10
6+
retrying==1.3.3
7+
pytest==3.5.1
8+
pandas==0.23.2
9+
numpy==1.14.3
10+
ipywidgets==7.2.0
11+
matplotlib==2.2.3
12+
--editable=./plotly
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
requests==2.12.4
2+
six==1.10.0
3+
retrying==1.3.3
4+
pandas==0.24.2
5+
numpy==1.19.5
6+
xarray==0.10.9
7+
statsmodels==0.10.2
8+
pillow==5.2.0
9+
pytest==3.5.1
10+
pytz==2016.10
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
requests==2.12.4
2+
six==1.10.0
3+
retrying==1.3.3
4+
pandas==0.24.2
5+
numpy==1.19.5
6+
xarray==0.10.9
7+
statsmodels==0.10.2
8+
pillow==5.2.0
9+
pytest==3.5.1
10+
pytz==2016.10
11+
12+
--editable=./plotly-geo
13+
ipython[all]==5.1.0
14+
ipywidgets==7.2.0
15+
ipykernel==4.8.2
16+
jupyter==1.0.0
17+
scipy==1.2.3
18+
shapely==1.7.0
19+
geopandas==0.3.0
20+
pyshp==1.2.10
21+
matplotlib==2.2.3
22+
scikit-image==0.14.4
23+
kaleido
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
requests==2.12.4
2+
six==1.10.0
3+
retrying==1.3.3
4+
pandas==0.24.2
5+
numpy==1.19.5
6+
xarray==0.10.9
7+
statsmodels==0.10.2
8+
pillow==5.2.0
9+
pytest==3.5.1
10+
pytz==2016.10
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
requests==2.12.4
2+
six==1.10.0
3+
retrying==1.3.3
4+
pandas==0.24.2
5+
numpy==1.19.5
6+
xarray==0.10.9
7+
statsmodels==0.10.2
8+
pillow==5.2.0
9+
pytest==3.5.1
10+
pytz==2016.10
11+
12+
--editable=./plotly-geo
13+
ipython[all]==5.1.0
14+
ipywidgets==7.2.0
15+
ipykernel==4.8.2
16+
jupyter==1.0.0
17+
scipy==1.2.3
18+
shapely==1.7.0
19+
geopandas==0.3.0
20+
pyshp==1.2.10
21+
matplotlib==2.2.3
22+
scikit-image==0.14.4
23+
kaleido

0 commit comments

Comments
 (0)
0