Skip to content

Use new toggle api v9 #66

Use new toggle api v9

Use new toggle api v9 #66

Workflow file for this run

name: Python application
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirement*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-testing.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-line-length=100 --statistics
- name: Lint with mypy
run: |
mypy tracklater
- name: Test with pytest
run: |
pytest --cov=. --cov-report term
codecov
env:
CODECOV_TOKEN: 9a7b0691-eff9-49e2-89d8-15c51a8df636