gradio/.circleci/config.yml

33 lines
882 B
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
- 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-08-12 02:44:35 +08:00
venv/bin/pip3 install --upgrade pip
venv/bin/python3 setup.py install
venv/bin/pip3 install selenium==4.0.0a6.post2
2021-05-24 08:57:14 +08:00
- run:
command: |
chromedriver --version
name: Check chrome driver install
- 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/