Skip to content

chore(deps): bump abatilo/actions-poetry from 2.1.4 to 2.3.0 #220

chore(deps): bump abatilo/actions-poetry from 2.1.4 to 2.3.0

chore(deps): bump abatilo/actions-poetry from 2.1.4 to 2.3.0 #220

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