Skip to content
Merged
Show file tree
Hide file tree
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
59 changes: 55 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
linux_build:
machine:
image: ubuntu-1604:201903-01 # the primary container, where your job's commands are run
resource_class: medium
resource_class: large
steps:
- checkout
- run: docker --version
Expand All @@ -22,11 +22,56 @@ jobs:
path: ./repos/build/kaleido_linux.zip
- store_artifacts:
path: ./repos/kaleido/py/kaleido_wheel.zip

- persist_to_workspace:
root: ./repos
paths:
- kaleido/py/

linux_test_37:
docker:
- image: continuumio/miniconda3
steps:
- checkout
- attach_workspace:
at: ./repos
- run:
name: Install dependencies
command: |
conda install python=3.7 poppler
pip install pytest plotly pandas
pip install ./repos/kaleido/py/dist/kaleido-*.whl
- run:
name: Test Python
command: |
cd ./repos/kaleido/py/
pytest -s tests/
- store_artifacts:
path: ./repos/kaleido/py/tests/baselines/plotly/failed/*

linux_test_27:
docker:
- image: continuumio/miniconda3
steps:
- attach_workspace:
at: ./repos
- run:
name: Install dependencies
command: |
conda install python=2.7 poppler
pip install pytest plotly pandas mock pathlib
pip install ./repos/kaleido/py/dist/kaleido-*.whl
- run:
name: Test Python
command: |
cd ./repos/kaleido/py/
pytest -s tests/
- store_artifacts:
path: ./repos/kaleido/py/tests/baselines/plotly/failed/*

mac_fetch:
macos: # indicate that we are using the macOS executor
xcode: 11.3.0 # indicate our selected version of Xcode
resource_class: medium
resource_class: large
steps:
- checkout
- run:
Expand Down Expand Up @@ -97,7 +142,7 @@ jobs:
windows_fetch:
executor:
name: win/default
size: "medium"
size: "large"
shell: powershell.exe
steps:
- checkout
Expand Down Expand Up @@ -153,4 +198,10 @@ workflows:
build-linux:
jobs:
- linux_build
- linux_test_37:
requires:
- linux_build
- linux_test_27:
requires:
- linux_build

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ repos/kaleido/version
repos/kaleido/LICENSE.txt
repos/kaleido/README.md
repos/kaleido/py/LICENSE.txt
repos/kaleido/py/tests/baselines/plotly/failed
*.pyc
win_toolchain/*.zip
repos/kaleido/py/kaleido/executable
Expand Down
Loading