From d22fee2b0b77ec922b879aa69256abc89b753a64 Mon Sep 17 00:00:00 2001 From: Mark Joshwel Date: Tue, 26 Mar 2024 18:46:39 +0000 Subject: [PATCH] ci: update workflows to use hatch --- .github/workflows/cd.yml | 5 +---- .github/workflows/ci.yml | 15 +++------------ 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index cf00593..9b00423 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -24,9 +24,6 @@ jobs: - name: install devbox uses: jetpack-io/devbox-install-action@v0.8.0 - - name: install dependencies - run: devbox run poetry install - - name: run releaser.py run: devbox run python releaser.py env: @@ -34,7 +31,7 @@ jobs: - name: build project id: build - run: devbox run poetry build + run: devbox run hatch build - name: duplicate non-versioned wheel run: cp dist/surplus-*.whl dist/surplus-latest-py3-none-any.whl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79e03a4..5702a1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,18 +19,9 @@ jobs: - name: install devbox uses: jetpack-io/devbox-install-action@v0.7.0 - - name: install dependencies - run: devbox run poetry install - - name: build wheel id: build - run: devbox run poetry build + run: devbox run hatch build - - name: analyse with mypy - run: devbox run poetry run mypy . - - - name: check for black formatting compliance - run: devbox run poetry run black --check . - - - name: analyse isort compliance - run: devbox run poetry run isort --check *.py **/*.py + - name: run checks + run: hatch show check