2019-05-30 16:03:00 +08:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2019-05-30 15:53:37 +08:00
|
|
|
- image: circleci/python:3.7.2
|
2019-05-30 16:03:00 +08:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: mkdir test-reports
|
2019-05-30 15:53:37 +08:00
|
|
|
- restore_cache:
|
2019-05-30 16:40:10 +08:00
|
|
|
key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }}
|
2019-05-30 15:53:37 +08:00
|
|
|
- run:
|
2019-05-30 16:03:00 +08:00
|
|
|
name: Install Python deps in a venv
|
2019-05-30 15:53:37 +08:00
|
|
|
command: |
|
2019-05-30 16:03:00 +08:00
|
|
|
python3 -m venv venv
|
|
|
|
. venv/bin/activate
|
2019-05-30 16:41:24 +08:00
|
|
|
pip install -r gradio.egg-info/requires.txt
|
2019-05-30 16:03:00 +08:00
|
|
|
- save_cache:
|
2019-05-30 16:40:10 +08:00
|
|
|
key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }}
|
2019-05-30 15:53:37 +08:00
|
|
|
paths:
|
2019-05-30 16:03:00 +08:00
|
|
|
- "venv"
|
2019-05-30 15:53:37 +08:00
|
|
|
- run:
|
|
|
|
command: |
|
2019-05-30 16:03:00 +08:00
|
|
|
. venv/bin/activate
|
|
|
|
python3 -m unittest
|
|
|
|
- store_artifacts:
|
|
|
|
path: test-reports/
|
2019-05-30 15:53:37 +08:00
|
|
|
destination: tr1
|
2019-05-30 16:03:00 +08:00
|
|
|
- store_test_results:
|
2019-06-20 03:03:54 +08:00
|
|
|
path: test-reports/
|