gradio/.circleci/config.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2019-05-30 16:03:00 +08:00
version: 2
jobs:
build:
docker:
- image: circleci/python:3.7.2-browsers
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
2021-02-20 03:16:52 +08:00
pip install --upgrade pip
2019-05-30 16:41:24 +08:00
pip install -r gradio.egg-info/requires.txt
pip install selenium==4.0.0a6.post2
2021-05-24 08:57:14 +08:00
- run:
command: |
chromedriver --version
name: Check chrome driver install
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"
- run:
command: |
mkdir screenshots
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: /home/circleci/project/test/tmp
destination: screenshots
2019-05-30 16:03:00 +08:00
- store_test_results:
2021-02-18 01:50:11 +08:00
path: test-reports/