28 lines
462 B
YAML
28 lines
462 B
YAML
# Disable sudo to speed up the build
|
|
sudo: false
|
|
|
|
# multiple operating systems
|
|
os:
|
|
- linux
|
|
# clone depth
|
|
git:
|
|
depth: 3
|
|
|
|
# Set the build language to Python
|
|
language: python
|
|
|
|
# Set the python version to 3.(6,7,8)
|
|
python:
|
|
- "3.6"
|
|
- "3.7"
|
|
- "3.8"
|
|
|
|
# Install the codecov pip dependency
|
|
install:
|
|
- pip install --upgrade pytest pytest-cov pytest-asyncio requests-mock
|
|
- python setup.py install
|
|
|
|
# Run the unit test
|
|
script:
|
|
- pytest tests --cov=./ -v
|