Bump pip from 21.2.4 to 23.3 (#14) #405
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: "lint" | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Install Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
cache-dependency-path: 'dev-requirements.txt' | |
- name: Install Python dependencies | |
run: pip install -r dev-requirements.txt | |
- name: Install linters | |
run: | | |
sudo apt install jsonlint shellcheck | |
- name: jsonlint-php th/data.json | |
run: jsonlint-php $GITHUB_WORKSPACE/th/data.json | |
- name: format python files | |
run: | | |
black --check $(git ls-files "*.py") | |
- name: typecheck python files | |
run: | | |
pyright $(git ls-files "*.py") | |
- name: shellcheck | |
run: | | |
shellcheck --version | |
./scripts/shellcheck.sh | |
- name: import qualification | |
run: | | |
./scripts/check-imports.sh |