language: python
python:
- "3.7"
- "3.8"
- "3.9"
# Command to install dependencies
install:
- pip install -r requirements.txt
- pip install pytest pytest-cov
# Command to run tests
script:
- pytest --cov=./ tests/
# Specify branches to build
branches:
only:
- main
- develop
# Cache pip dependencies
cache: pip
# Run jobs in parallel
jobs:
include:
- name: "Lint"
python: "3.9"
before_script:
- pip install flake8
script:
- flake8 .
- name: "Docs"
language: python
python:
- "3.7"
- "3.8"
- "3.9"
# Command to install dependencies
install:
- pip install -r requirements.txt
- pip install pytest pytest-cov
# Command to run tests
script:
- pytest --cov=./ tests/
only:
- main