Skip to content

Commit

Permalink
ci: Use hatch to manage builds (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Apr 19, 2024
1 parent a41df96 commit dfea903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfea903

Please sign in to comment.