-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add a hatch fmt and hatch run test workflow
We don't actually have any tests yet but still.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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 |