chore(deps-dev): bump black from 23.3.0 to 23.9.1 #357
Workflow file for this run
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: "Validations" | |
on: | |
workflow_dispatch: | |
push: | |
env: | |
PYTHON_VERSION: "3.9" | |
POETRY_VERSION: "1.3.2" | |
jobs: | |
# note: changing the job name requires a quality gate reference change in .github/workflows/release.yaml | |
validations: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ~/.virtualenvs | |
key: python-${{ env.PYTHON_VERSION }}-poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('poetry.lock') }} | |
restore-keys: | | |
python-${{ env.PYTHON_VERSION }}-poetry-${{ env.POETRY_VERSION }} | |
- name: Setup Poetry config | |
run: | | |
poetry config virtualenvs.in-project false | |
poetry config virtualenvs.path ~/.virtualenvs | |
- name: Install dependencies and package | |
run: poetry install | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Run static analysis | |
run: make static-analysis | |
- name: Run unit tests | |
run: poetry run pytest | |
- name: Build test | |
run: poetry run make build | |
- name: Run CLI tests | |
run: make cli |