@@ -15,121 +15,94 @@ jobs:
15
15
strategy :
16
16
matrix :
17
17
python-version : ['3.10', '3.11', '3.12']
18
- poetry-version : [1.8.3]
19
- pandoc-version : ['3.3']
18
+ pandoc-version : ['3.4']
20
19
steps :
21
20
- uses : actions/checkout@v4
22
21
- name : Set up Python ${{ matrix.python-version }}
23
22
uses : actions/setup-python@v4
24
23
with :
25
24
python-version : ${{ matrix.python-version }}
26
- - name : Set up Poetry ${{ matrix.poetry-version }}
27
- uses : abatilo/actions-poetry@v2
28
- with :
29
- poetry-version : ${{ matrix.poetry-version }}
25
+ - name : Install Hatch
26
+ run : pipx install hatch
30
27
- name : Install dependencies
31
28
run : |
32
29
wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
33
30
sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
34
- poetry install
35
- - name : Test with tox
31
+ - name : Test
36
32
run : |
37
- poetry run tox -e py
33
+ hatch test -py ${{ matrix.python-version }}
38
34
39
- poetry :
35
+ pandoc :
40
36
runs-on : ubuntu-latest
41
37
strategy :
42
38
matrix :
43
39
python-version : ['3.12']
44
- poetry-version : [1.2.2, 1.3.2, 1.4.2, 1.5.1, 1.6.1, 1.7.1, 1. 8.3]
45
- pandoc-version : ['3.3']
40
+ poetry-version : [1.8.3]
41
+ pandoc-version : [3.0.1, 3.1.13, 3.2.1, '3.3', '3.4 ']
46
42
steps :
47
43
- uses : actions/checkout@v4
48
44
- name : Set up Python ${{ matrix.python-version }}
49
45
uses : actions/setup-python@v4
50
46
with :
51
47
python-version : ${{ matrix.python-version }}
52
- - name : Set up Poetry ${{ matrix.poetry-version }}
53
- uses : abatilo/actions-poetry@v2
54
- with :
55
- poetry-version : ${{ matrix.poetry-version }}
48
+ - name : Install Hatch
49
+ run : pipx install hatch
56
50
- name : Install dependencies
57
51
run : |
58
52
wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
59
53
sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
60
- poetry install
61
- - name : Test with tox
54
+ - name : Test
62
55
run : |
63
- poetry run tox -e py
56
+ hatch test
64
57
65
- pandoc :
58
+ style :
66
59
runs-on : ubuntu-latest
67
60
strategy :
68
61
matrix :
69
62
python-version : ['3.12']
70
- poetry-version : [1.8.3]
71
- pandoc-version : [3.0.1, 3.1.13, 3.2.1, '3.3']
63
+ pandoc-version : ['3.4']
72
64
steps :
73
65
- uses : actions/checkout@v4
74
- - name : Set up Python ${{ matrix.python-version }}
66
+ - name : Set up Python
75
67
uses : actions/setup-python@v4
76
68
with :
77
69
python-version : ${{ matrix.python-version }}
78
- - name : Set up Poetry ${{ matrix.poetry-version }}
79
- uses : abatilo/actions-poetry@v2
80
- with :
81
- poetry-version : ${{ matrix.poetry-version }}
70
+ - name : Install Hatch
71
+ run : pipx install hatch
82
72
- name : Install dependencies
83
73
run : |
84
74
wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
85
75
sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
86
- poetry install
87
- - name : Test with tox
76
+ - name : Static check
88
77
run : |
89
- poetry run tox -e py
90
-
91
- style :
92
- runs-on : ubuntu-latest
93
- steps :
94
- - uses : actions/checkout@v4
95
- - name : Set up Python
96
- uses : actions/setup-python@v4
97
- with :
98
- python-version : ' 3.12'
99
- - name : Set up Poetry
100
- uses : abatilo/actions-poetry@v2
101
- with :
102
- poetry-version : 1.8.3
103
- - name : Install dependencies
104
- run : |
105
- poetry install
106
- - name : Test with tox
78
+ hatch fmt --check
79
+ - name : Dynamic check
107
80
run : |
108
- poetry run tox -e style
109
- poetry run tox -e linter
81
+ hatch run dynamic-lint:check
110
82
111
83
cov :
112
84
runs-on : ubuntu-latest
85
+ strategy :
86
+ matrix :
87
+ python-version : ['3.12']
88
+ pandoc-version : ['3.4']
113
89
steps :
114
90
- uses : actions/checkout@v4
115
91
- name : Set up Python
116
92
uses : actions/setup-python@v4
117
93
with :
118
- python-version : ' 3.12'
119
- - name : Set up Poetry
120
- uses : abatilo/actions-poetry@v2
121
- with :
122
- poetry-version : 1.8.3
94
+ python-version : ${{ matrix.python-version }}
95
+ - name : Install Hatch
96
+ run : pipx install hatch
123
97
- name : Install dependencies
124
98
run : |
125
- wget https://github.com/jgm/pandoc/releases/download/3.3/pandoc-3.3-1-amd64.deb
126
- sudo dpkg -i ./pandoc-3.3-1-amd64.deb
127
- poetry install
99
+ wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
100
+ sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
128
101
- name : Test
129
102
env :
130
103
COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
131
104
run : |
132
- poetry run tox -e coverage
133
- poetry run pip install coveralls
134
- poetry run coveralls
105
+ hatch test --cover
106
+ hatch run pip install coveralls
107
+ hatch run coveralls
135
108
0 commit comments