ci: add a hatch fmt and hatch run test workflow #4
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
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 |