gradio/.circleci/config.yml
2019-06-19 12:03:54 -07:00

29 lines
816 B
YAML

version: 2
jobs:
build:
docker:
- image: circleci/python:3.7.2
steps:
- checkout
- run: mkdir test-reports
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }}
- run:
name: Install Python deps in a venv
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r gradio.egg-info/requires.txt
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }}
paths:
- "venv"
- run:
command: |
. venv/bin/activate
python3 -m unittest
- store_artifacts:
path: test-reports/
destination: tr1
- store_test_results:
path: test-reports/