Add a hatch CI #9
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-24.04 | |
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-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: linuxwacom/libwacom/.github/actions/pkginstall@master | |
with: | |
apt: $UBUNTU_PACKAGES gobject-introspection pkgconf | |
pip: $PIP_PACKAGES | |
- run: pkgconf --modversion gobject-introspection-1.0 | |
- run: hatch run test |