Skip to content

ci: add a hatch fmt and hatch run test workflow #4

ci: add a hatch fmt and hatch run test workflow

ci: add a hatch fmt and hatch run test workflow #4

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-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