Make additional market metrics optional (#105) #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python application | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'The branch to build' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Linting... | |
run: | | |
isort --check --diff tastytrade/ tests/ | |
flake8 --count --show-source --statistics tastytrade/ tests/ | |
mypy -p tastytrade | |
- name: Testing... | |
run: | | |
python -m pytest --cov=tastytrade --cov-report=term-missing tests/ --cov-fail-under=95 | |
env: | |
TT_USERNAME: ${{ secrets.TT_USERNAME }} | |
TT_PASSWORD: ${{ secrets.TT_PASSWORD }} |