8000 Fix sint parsing · betterproto/python-betterproto2@da5e306 · GitHub
[go: up one dir, main page]

Skip to content
10000

More validation

More validation #252

Workflow file for this run

name: Code Quality
on:
push:
branches:
- main
pull_request:
branches:
- '**'
permissions:
contents: read
jobs:
check-formatting:
name: Check code/doc formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1
- name: Install poetry
shell: bash
run: |
python -m pip install poetry
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Configure poetry
shell: bash
run: poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v3
id: cache
with:
path: .venv
key: venv-quality-${{ hashFiles('**/poetry.lock') }}
- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
- name: Install dependencies
shell: bash
run: poetry install -E all
- uses: pre-commit/action@v3.0.1
- name: Pyright
shell: bash
run: poetry run poe typecheck
0