Update training component #24
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: Code Quality Check | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
code-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.8.3 | |
- name: Install dependencies using Poetry | |
run: poetry install | |
- name: Run ruff check | |
run: poetry run ruff check | |
- name: Run ruff format check | |
run: poetry run ruff format --check | |
- name: Run mypy | |
run: | | |
poetry run mypy . |