-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 949 Bytes
/
hatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: hatch
on: [push, pull_request]
env:
UBUNTU_PACKAGES: python3-gi
UBUNTU_TEST_PACKAGES: gobject-introspection pkgconf libcairo2-dev libgirepository-1.0-dev
PIP_PACKAGES: hatch
jobs:
hatch-fmt:
name: hatch format
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- 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: actions/setup-python@v5
with:
python-version: '3.12'
- uses: linuxwacom/libwacom/.github/actions/pkginstall@master
with:
apt: $UBUNTU_PACKAGES $UBUNTU_TEST_PACKAGES
pip: $PIP_PACKAGES
- run: hatch run test