Bump pytest from 6.2.4 to 7.4.2 #100
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: Python | |
on: | |
push: | |
paths: | |
- "**/*.py" | |
- ".github/workflows/python.yaml" | |
- "requirements.txt" | |
- "requirements-test.txt" | |
- "pyproject.toml" | |
jobs: | |
lint-python: | |
name: Lint Python Code | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- name: Cache Pip | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: pip-${{ hashFiles('requirements.txt', 'requirements-test.txt') }} | |
- name: Setup | |
run: | | |
pip install --requirement requirements.txt --requirement requirements-test.txt | |
- name: Lint Python Code | |
run: | | |
isort --check --diff . | |
black --check --diff . | |
find . -name "*.py" | xargs pylint |