diff --git a/.github/workflows/hatch.yml b/.github/workflows/hatch.yml new file mode 100644 index 0000000..96a817e --- /dev/null +++ b/.github/workflows/hatch.yml @@ -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 + 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 + 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 run test