freeCodeCamp builder #50
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: QA | |
on: | |
push: | |
branches: main | |
pull_request: | |
env: | |
MAX_LINE_LENGTH: 88 | |
jobs: | |
check-qa: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
- name: Install lint requirements | |
run: | | |
pip install -r openzim/lint_requirements.txt | |
- name: Check black formatting | |
run: | | |
black --version | |
black --check . | |
- name: Check flake8 linting | |
run: | | |
flake8 --version | |
flake8 . --count --max-line-length=$MAX_LINE_LENGTH --statistics | |
- name: Check import order with isort | |
run: | | |
isort --version | |
isort --profile black --check . |