@@ -14,122 +14,94 @@ 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.3']
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 }}
2322 uses : actions/setup-python@v4
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+
36+ pandoc :
4037 runs-on : ubuntu-latest
4138 strategy :
4239 matrix :
4340 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']
41+ pandoc-version : [2.11.4, '2.12', '2.13', 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']
4642 steps :
47- - uses : actions/checkout@v3
43+ - uses : actions/checkout@v4
4844 - name : Set up Python ${{ matrix.python-version }}
4945 uses : actions/setup-python@v4
5046 with :
5147 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
5650 - name : Install dependencies
5751 run : |
5852 wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
5953 sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
60- poetry install
61- - name : Test with tox
54+ - name : Test
6255 run : |
63- poetry run tox -e py
56+ hatch test
6457
65- pandoc :
58+ style :
6659 runs-on : ubuntu-latest
6760 strategy :
6861 matrix :
6962 python-version : ['3.12']
70- poetry-version : [1.8.3]
71- pandoc-version : [2.11.4, '2.12', '2.13', 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']
63+ pandoc-version : ['3.5']
7264 steps :
7365 - uses : actions/checkout@v4
74- - name : Set up Python ${{ matrix.python-version }}
66+ - name : Set up Python
7567 uses : actions/setup-python@v4
7668 with :
7769 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
8272 - name : Install dependencies
8373 run : |
8474 wget https://github.com/jgm/pandoc/releases/download/${{ matrix.pandoc-version }}/pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
8575 sudo dpkg -i ./pandoc-${{ matrix.pandoc-version }}-1-amd64.deb
86- poetry install
87- - name : Test with tox
76+ - name : Static check
8877 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
78+ hatch fmt --check
79+ - name : Dynamic check
10480 run : |
105- poetry install
106- - name : Test with tox
107- run : |
108- poetry run tox -e style
109- poetry run tox -e linter
81+ hatch run lint:check
11082
11183 cov :
11284 runs-on : ubuntu-latest
85+ strategy :
86+ matrix :
87+ python-version : ['3.12']
88+ pandoc-version : ['3.5']
11389 steps :
11490 - uses : actions/checkout@v4
11591 - name : Set up Python
11692 uses : actions/setup-python@v4
11793 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
12397 - name : Install dependencies
12498 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
128101 - name : Test
129102 env :
130103 COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
131104 run : |
132- poetry run tox -e coverage
133- poetry run pip install coveralls
134- poetry run coveralls
135-
105+ hatch test --cover
106+ hatch run pip install coveralls
107+ hatch run coveralls
0 commit comments