chore: update GitHub Actions workflow pyinstaller-build.yml #9
This file contains hidden or 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 & Type Check | |
on: | |
pull_request: | |
branches: [main, master] | |
push: | |
branches: [main, master] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: backend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Poetry and dependencies | |
run: | | |
pip install poetry | |
poetry config virtualenvs.in-project true | |
poetry install --no-interaction --no-root | |
- name: Ruff format + lint | |
run: | | |
poetry run ruff format --check . | |
poetry run ruff check . | |
- name: mypy type check | |
run: | | |
poetry run mypy . |