Skip to content

Merge pull request #18 from microsoft/dependabot/pip/gitpython-3.1.32 #52

Merge pull request #18 from microsoft/dependabot/pip/gitpython-3.1.32

Merge pull request #18 from microsoft/dependabot/pip/gitpython-3.1.32 #52

Workflow file for this run

# SPDX-FileCopyrightText: 2019–2022 Pynguin Contributors
#
# SPDX-License-Identifier: LGPL-3.0-or-later
name: CI
on: [push, pull_request]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
poetry-version: [1.3.2]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Check imports with isort
run: poetry run isort --check-only . --profile black
- name: Check formatting with black
run: poetry run black --diff --check .
- name: Check typing with mypy
run: poetry run mypy pynguin
- name: Linting with flake8
run: poetry run flake8 --exclude replication,docs .
- name: Linting with pylint
run: poetry run pylint pynguin
- name: Check docstrings with darglint
run: poetry run darglint -v 2 pynguin/**/*.py
- name: Run tests
run: poetry run pytest --cov=pynguin --cov=tests --cov-branch --cov-report=term-missing tests/