Skip to content

Commit

Permalink
ci: add a hatch fmt and hatch run test workflow
Browse files Browse the repository at this point in the history
We don't actually have any tests yet but still.
  • Loading branch information
whot committed Jun 6, 2024
1 parent b7ad882 commit 7837974
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/hatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: hatch
on: [push, pull_request]

env:
UBUNTU_PACKAGES: python3-pip python3-gi
PIP_PACKAGES: hatch

jobs:
hatch-fmt:
name: hatch format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: linuxwacom/libwacom/.github/actions/pkginstall@master
with:
apt: $UBUNTU_PACKAGES
pip: $PIP_PACKAGES
- run: hatch fmt --check

hatch-test:
name: hatch run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: linuxwacom/libwacom/.github/actions/pkginstall@master
with:
apt: $UBUNTU_PACKAGES gobject-introspection
pip: $PIP_PACKAGES
- run: hatch run test

0 comments on commit 7837974

Please sign in to comment.