Skip to content

Add a hatch CI

Add a hatch CI #9

Workflow file for this run

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