File tree Expand file tree Collapse file tree 4 files changed +20
-21
lines changed Expand file tree Collapse file tree 4 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ jobs:
1717 - name : Set up Python
1818 uses : actions/setup-python@v5
1919 with :
20- python-version : 3.9
20+ python-version : 3.10
2121 -
uses :
pre-commit/[email protected] 2222
2323 tests :
2424 runs-on : ${{ matrix.os }}
2525 strategy :
2626 matrix :
27- python-version : [3.7, 3.8, 3.9 ]
27+ python-version : ['3.10', '3.13' ]
2828 os : [ubuntu-latest, windows-latest]
2929
3030 steps :
@@ -48,10 +48,10 @@ jobs:
4848
4949 # FYI: credentials are not configured. Turned off for now
5050 # - name: Upload to Codecov
51- # if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7
51+ # if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10
5252 # uses: codecov/codecov-action@v1
5353 # with:
54- # name: pytests-py3.7
54+ # name: pytests-py3.10
5555 # flags: pytests
5656 # file: ./coverage.xml
5757 # fail_ci_if_error: true
6464 - name : Set up Python
6565 uses : actions/setup-python@v5
6666 with :
67- python-version : 3.7
67+ python-version : 3.10
6868
6969 - name : Installation (deps and package)
7070 run : |
@@ -83,13 +83,13 @@ jobs:
8383 steps :
8484 - name : Checkout source
8585 uses : actions/checkout@v4
86- - name : Set up Python 3.7
86+ - name : Set up Python 3.10
8787 uses : actions/setup-python@v5
8888 with :
89- python-version : 3.7
89+ python-version : 3.10
9090 - name : install flit
9191 run : |
92- pip install flit~=3.0
92+ pip install flit~=3.12
9393 - name : Build and publish
9494 run : |
9595 flit publish
Original file line number Diff line number Diff line change 2525and with test coverage:
2626
2727``` bash
28- tox -e py37 -cov
28+ tox -e py310 -cov
2929```
3030
3131The easiest way to write tests, is to edit tests/fixtures.md
3232
3333To run the code formatting and style checks:
3434
3535``` bash
36- tox -e py37 -pre-commit
36+ tox -e py310 -pre-commit
3737```
3838
3939or directly
@@ -46,7 +46,7 @@ pre-commit run --all
4646To run the pre-commit hook test:
4747
4848``` bash
49- tox -e py37 -hook
49+ tox -e py310 -hook
5050```
5151
5252## Publish to PyPi
Original file line number Diff line number Diff line change @@ -16,14 +16,13 @@ classifiers = [
1616]
1717keywords = " mdformat,markdown,markdown-it"
1818
19- requires-python =" >=3.7 "
20- requires =[" mdformat >=0.7.0,<0.8 .0" , " mdit-py-plugins >=0.2.7" ]
19+ requires-python =" >=3.10 "
20+ requires =[" mdformat >=1.0 .0" , " mdit-py-plugins >=0.2.7" ]
2121
2222[tool .flit .metadata .requires-extra ]
2323test = [
24- " pytest~=6.0" ,
25- " coverage" ,
26- " pytest-cov" ,
24+ " pytest>=8.0.0" ,
25+ " pytest-cov>=7.0.0" ,
2726]
2827dev = [" pre-commit" ]
2928
Original file line number Diff line number Diff line change 11[tox]
2- envlist = py38
2+ envlist = py310
33isolated_build = True
44
5- [testenv:py{37,38,39 }]
5+ [testenv:py{310,313 }]
66extras = test
77deps =
88 black
99 flake8
1010commands = pytest {posargs}
1111
12- [testenv:py{37,38,39 }-cov]
12+ [testenv:py{310,313 }-cov]
1313extras = test
1414commands = pytest --cov ={envsitepackagesdir}/mdformat_deflist {posargs}
1515
16- [testenv:py{37,38,39 }-pre-commit]
16+ [testenv:py{310,313 }-pre-commit]
1717extras = dev
1818commands = pre-commit run {posargs:--all-files}
1919
20- [testenv:py{37,38,39 }-hook]
20+ [testenv:py{310,313 }-hook]
2121extras = dev
2222commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}
2323
You can’t perform that action at this time.
0 commit comments