Skip to content

Bump black from 21.6b0 to 24.3.0 #37

Bump black from 21.6b0 to 24.3.0

Bump black from 21.6b0 to 24.3.0 #37

Workflow file for this run

name: test
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1.1.6
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run linter
run: |
poetry run black --check --diff .
- name: Run tests
run: |
poetry run pytest --cov=accloudtant --cov-report term-missing:skip-covered
- name: Run complexity analysis
run: |
test $(poetry run radon cc --md -nb accloudtant/ | grep -E "\| [A-F] \|$" | wc -l) -eq 0 \
|| poetry run radon cc --md -nb accloudtant/