mirror of
https://github.com/alicia-ziying-yang/conTEXT-explorer.git
synced 2022-02-20 22:06:42 +03:00
34 lines
864 B
YAML
34 lines
864 B
YAML
language: python
|
|
python:
|
|
- "3.7.5"
|
|
# command to install dependencies
|
|
services:
|
|
- xvfb
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- google-chrome
|
|
packages:
|
|
- google-chrome-stable
|
|
|
|
install:
|
|
- pip install --upgrade packaging
|
|
- pip install -r requirements.txt
|
|
- pip install dash[testing]
|
|
- python -m spacy download en
|
|
# command to run tests
|
|
script:
|
|
- python -m pytest ./
|
|
|
|
before_script:
|
|
- wget https://chromedriver.storage.googleapis.com/96.0.4664.45/chromedriver_linux64.zip
|
|
- unzip chromedriver_linux64.zip
|
|
- sudo apt-get install libnss3
|
|
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
- dpkg -i google-chrome-stable_current_amd64.deb; sudo apt-get -fy install
|
|
- sudo cp chromedriver /usr/local/bin/.
|
|
- sudo chmod +x /usr/local/bin/chromedriver
|
|
- export DISPLAY=:99.0
|
|
- sleep 3
|
|
|