Skip to content

Commit

Permalink
Fix CircleCI configuration problems with Python+Node (plotly#26)
Browse files Browse the repository at this point in the history
* Update CircleCI

* Change python version

* Change python 3.7.6 to 3.7

* change python3 to python

* More fixes
  • Loading branch information
Xing authored Aug 6, 2020
1 parent 96c8142 commit 0572adb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,31 @@ version: 2
jobs:
"node":
docker:
- image: circleci/node:8.11.3
- image: circleci/python:3.7-node

steps:
- checkout

- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}

- run:
name: Create virtualenv
command: |
python -m venv venv
- run:
name: Install requirements
command: |
. venv/bin/activate
pip install -r requirements.txt --quiet
pip install -r tests/requirements.txt --quiet
- run:
name: Install package.json
command: npm i
command: |
. venv/bin/activate
npm i
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
Expand Down

0 comments on commit 0572adb

Please sign in to comment.