Skip to content

SDK ux improvements #162

SDK ux improvements

SDK ux improvements #162

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
environment: ci
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-python-${{ hashFiles('./pyproject.toml') }}
- name: Install dependencies
run: poetry install
- name: Run linting check
run: poetry run flake8
- name: Check Black formatting
run: poetry run black --check .
- name: Run tests
env:
VIDEO_API_KEY: ${{ secrets.VIDEO_API_KEY }}
VIDEO_API_SECRET: ${{ secrets.VIDEO_API_SECRET }}
run: poetry run pytest tests/