7
7
branches : [main]
8
8
9
9
jobs :
10
+ lint-docs :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Set up Python 3.12
15
+ uses : actions/setup-python@v5
16
+ with :
17
+ python-version : " 3.12"
18
+ - name : Install hatch
19
+ uses : pypa/hatch@install
20
+ - name : Lint documentation
21
+ run : hatch run docs:check
22
+
10
23
lint-code :
11
24
runs-on : ubuntu-latest
12
25
name : Lint code
13
26
steps :
14
27
- uses : actions/checkout@v4
15
- - name : Set up Python
28
+ - name : Set up Python 3.12
16
29
uses : actions/setup-python@v5
17
30
with :
18
31
python-version : " 3.12"
19
- - name : Install dependencies
20
- run : |
21
- pip install hatch
22
- pip install hatch-vcs
23
- pip install hatch-fancy-pypi-readme
32
+ - name : Install hatch
33
+ uses : pypa/hatch@install
24
34
- name : Lint code
25
- run : hatch run lint:style
35
+ run : hatch fmt --check
26
36
27
37
lint-typing :
28
38
runs-on : ubuntu-latest
29
39
name : Lint type annotations
30
40
steps :
31
41
- uses : actions/checkout@v4
32
- - name : Set up Python
42
+ - name : Set up Python 3.12
33
43
uses : actions/setup-python@v5
34
44
with :
35
45
python-version : " 3.12"
36
- - name : Install dependencies
37
- run : |
38
- pip install hatch
39
- pip install hatch-vcs
40
- pip install hatch-fancy-pypi-readme
46
+ - name : Install hatch
47
+ uses : pypa/hatch@install
41
48
- name : Lint typing
42
- run : hatch run lint:typing
49
+ run : hatch run types:check
43
50
44
51
test :
45
52
runs-on : ubuntu-latest
@@ -53,13 +60,10 @@ jobs:
53
60
uses : actions/setup-python@v5
54
61
with :
55
62
python-version : ${{ matrix.python-version }}
56
- - name : Install dependencies
57
- run : |
58
- pip install hatch
59
- pip install hatch-vcs
60
- pip install hatch-fancy-pypi-readme
63
+ - name : Install hatch
64
+ uses : pypa/hatch@install
61
65
- name : Test
62
- run : hatch run cov-test
66
+ run : hatch test --cover --python ${{ matrix.python-version }}
63
67
- uses : codecov/codecov-action@v4
64
68
with :
65
69
token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments