use hatch instead of poetry #480
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- run: uvx hatch test -ac | |
if: ${{ always() }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: check formatting | |
run: uvx hatch fmt --check -f | |
- name: check linting | |
run: uvx hatch fmt --check -l --output-format=github | |
- name: check uv.lock is up-to-date | |
run: uv lock --check | |
- name: check requirements.txt is up-to-date | |
run: | | |
uv export --no-dev >requirements.txt | |
git diff --exit-code requirements.txt |