Update README.md #91
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: Style and typing checks for CMG | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.4.2 | |
- name: Install dependencies | |
run: | | |
cd commit_message_generation && poetry install --no-interaction | |
- name: Lint with Black | |
run: | | |
cd commit_message_generation && poetry run black . --check | |
- name: Check import styling with isort | |
run: | | |
cd commit_message_generation && poetry run isort . --check | |
- name: Check types with mypy | |
run: | | |
cd commit_message_generation && poetry run mypy . |