@@ -14,122 +14,93 @@ jobs:
1414 runs-on : ubuntu-latest
1515 strategy :
1616 matrix :
17- python-version : ['3.10', '3.11', '3.12']
18- poetry-version : [1.8.3]
19- pandoc-version : [3.2.1]
17+ python-version : ['3.10', '3.11', '3.12', '3.13']
18+ pandoc-version : ['3.5']
2019 steps :
2120 - uses : actions/checkout@v4
2221 - name : Set up Python ${{ matrix.python-version }}
23- uses : actions/setup-python@v4
22+ uses : actions/setup-python@v5
2423 with :
2524 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
3027 - name : Install dependencies
3128 run : |
3229 wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
3330 sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
34- poetry install
35- - name : Test with tox
31+ - name : Test
3632 run : |
37- poetry run tox -e py
33+ hatch test -py ${{ matrix.python-version }}
3834
39- poetry :
35+ pandoc :
4036 runs-on : ubuntu-latest
4137 strategy :
4238 matrix :
4339 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.2.1]
40+ pandoc-version : [2.14.2, '2.15', 2.16.2, 2.17.1.1, '2.18', 2.19.2, 3.0.1, 3.1.13, 3.2.1, '3.3', '3.4', '3.5']
4641 steps :
4742 - uses : actions/checkout@v4
4843 - name : Set up Python ${{ matrix.python-version }}
49- uses : actions/setup-python@v4
44+ uses : actions/setup-python@v5
5045 with :
5146 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 }}
47+ - name : Install Hatch
48+ run : pipx install hatch
5649 - name : Install dependencies
5750 run : |
5851 wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
5952 sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
60- poetry install
61- - name : Test with tox
53+ - name : Test
6254 run : |
63- poetry run tox -e py
55+ hatch test
6456
65- pandoc :
57+ style :
6658 runs-on : ubuntu-latest
6759 strategy :
6860 matrix :
6961 python-version : ['3.12']
70- poetry-version : [1.8.3]
71- pandoc-version : [2.14.2, '2.15', 2.16.2, 2.17.1.1, '2.18', 2.19.2, 3.0.1, 3.1.13, 3.2.1]
62+ pandoc-version : ['3.5']
7263 steps :
7364 - uses : actions/checkout@v4
74- - name : Set up Python ${{ matrix.python-version }}
75- uses : actions/setup-python@v4
65+ - name : Set up Python
66+ uses : actions/setup-python@v5
7667 with :
7768 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 }}
69+ - name : Install Hatch
70+ run : pipx install hatch
8271 - name : Install dependencies
8372 run : |
8473 wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
8574 sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
86- poetry install
87- - name : Test with tox
75+ - name : Static check
8876 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
77+ hatch fmt --check
78+ - name : Dynamic check
10479 run : |
105- poetry install
106- - name : Test with tox
107- run : |
108- poetry run tox -e style
109- poetry run tox -e linter
80+ hatch run lint:check
11081
11182 cov :
11283 runs-on : ubuntu-latest
84+ strategy :
85+ matrix :
86+ python-version : ['3.12']
87+ pandoc-version : ['3.5']
11388 steps :
11489 - uses : actions/checkout@v4
11590 - name : Set up Python
116- uses : actions/setup-python@v4
117- with :
118- python-version : ' 3.12'
119- - name : Set up Poetry
120- uses : abatilo/actions-poetry@v2
91+ uses : actions/setup-python@v5
12192 with :
122- poetry-version : 1.8.3
93+ python-version : ${{ matrix.python-version }}
94+ - name : Install Hatch
95+ run : pipx install hatch
12396 - name : Install dependencies
12497 run : |
125- wget https://github.com/jgm/pandoc/releases/download/3.2.1/pandoc-3.2.1-1-amd64.deb
126- sudo dpkg -i ./pandoc-3.2.1-1-amd64.deb
127- poetry install
98+ wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
99+ sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
128100 - name : Test
129101 env :
130102 COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
131- run : |
132- poetry run tox -e coverage
133- poetry run pip install coveralls
134- poetry run coveralls
135-
103+ run : |-
104+ hatch test --cover
105+ hatch run pip install coveralls
106+ hatch run coveralls
0 commit comments