chore: Run kotoha-chan on GitHub Actions #2
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: Living procedure | |
| on: [push] | |
| jobs: | |
| macos: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| uv --version | |
| uvx --version | |
| - name: Play baseball | |
| run: | | |
| cat > baseball.py <<PY | |
| def plus_one(numbers: list[int]) -> list[int]: | |
| return [n + 1 for n in numbers] | |
| PY | |
| - name: Run flake8-kotoha | |
| run: uvx --with flake8-kotoha flake8 baseball.py; [ $? -eq 1 ] |