Skip to content

fix: add Lang enum #227

fix: add Lang enum

fix: add Lang enum #227

Workflow file for this run

name: Python SDK quality checks and unit tests
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Install dependencies
run:
poetry install
- name: Launch quality checks
run: |
poetry run flake8 .
poetry run black --check .
poetry run mypy .
poetry run isort --check .
- name: Test with pytest
run: |
poetry run pytest tests