Skip to content

Merge pull request #299 from jupyter/dependabot/pip/flake8-lt-7 #667

Merge pull request #299 from jupyter/dependabot/pip/flake8-lt-7

Merge pull request #299 from jupyter/dependabot/pip/flake8-lt-7 #667

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Linters
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
name:
description: 'Reason'
required: false
default: 'Just Cause'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
flit install --symlink
- name: dependency tree
run: |
pipdeptree
- name: dependency tree (reversed)
run: |
pipdeptree -r
- name: Lint with black
run: |
black --check papyri
- name: Lint with flake8
if: always()
run: |
flake8 papyri
- name: Test with mypy
if: always()
run: |
python3 -m pip install types-requests types-cachetools types-toml
mypy papyri