chore: migrate to hatch (#31) #9
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
typing: | |
runs-on: "ubuntu-latest" | |
name: Type checking | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: | | |
pip install hatch | |
hatch run checks:typing | |
linting: | |
runs-on: "ubuntu-latest" | |
name: Linting | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: | | |
pip install hatch | |
hatch run checks:linting | |
formatting: | |
runs-on: "ubuntu-latest" | |
name: Formatting | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: | | |
pip install hatch | |
hatch run checks:formatting |