SDK ux improvements #162
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: 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/ |