Bump black from 21.6b0 to 24.3.0 #37
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: 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/ |