upload-preview-button #16
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 Code Quality Check | |
on: | |
pull_request: | |
paths: | |
- 'backend/**' | |
jobs: | |
python-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: pip install black flake8 mypy | |
- name: Check Python code formatting with Black | |
run: black --check backend/ | |
- name: Check Python code style with Flake8 | |
run: flake8 backend/ | |
- name: Run Mypy Type Checking | |
run: mypy backend/ |