Version 1.42.0 #887
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 Lint | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "python/**" | |
- "openapi.json" | |
- ".github/workflows/python-lint.yml" | |
pull_request: | |
paths: | |
- "python/**" | |
- "openapi.json" | |
- ".github/workflows/python-lint.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: '3.11' | |
- name: Install deps | |
run: | | |
cd python | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt . | |
python -m pip install -r requirements-dev.txt . | |
- name: Regen openapi libs | |
run: | | |
cd python | |
./scripts/generate_openapi.sh | |
- name: Run linting | |
run: | | |
cd python | |
sh ./scripts/lint.sh |