gradio/.circleci/config.yml
2021-05-24 02:25:45 -04:00

39 lines
1.1 KiB
YAML

version: 2
jobs:
build:
docker:
- image: circleci/python:3.7.2-browsers
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 --upgrade pip
pip install -r gradio.egg-info/requires.txt
pip install selenium==4.0.0a6.post2
- run:
command: |
chromedriver --version
name: Check chrome driver install
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }}
paths:
- "venv"
- run:
command: |
mkdir screenshots
- run:
command: |
. venv/bin/activate
python3 -m unittest
- store_artifacts:
path: /home/circleci/project/test/tmp
destination: screenshots
- store_test_results:
path: test-reports/