From f1bb2e79ba5f88b1f6666b1d17153d1cefaba1bd Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Fri, 19 Apr 2024 16:28:48 -0400 Subject: [PATCH] ci: Use hatch to manage builds --- .github/workflows/ci.yml | 7 ++----- .github/workflows/release.yml | 5 ++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bb1373..4c9d786 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,5 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: | - pip install uv - uv pip install --system . - uv pip install --system pytest inline-snapshot - - name: Run tests - run: pytest ./tests --color=yes + pipx install hatch + hatch run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a426ee9..0862282 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,9 +33,8 @@ jobs: python-version: "3.x" - run: | - pip install uv - uv pip install --system build - python -m build + pipx install hatch + hatch build - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1