Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a87368

Browse files
authored
GitHub Actions: python: ["3.8", "3.9", "3.10", "3.11", "3.12"] (#575)
1 parent3e500bb commit4a87368

File tree

5 files changed

+34
-26
lines changed

5 files changed

+34
-26
lines changed

‎.appveyor.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
image:Visual Studio 2019
1+
# appveyor.yml - https://www.appveyor.com/docs/lang/python
2+
# https://www.appveyor.com/docs/windows-images-software/#visual-studio-2022
3+
---
4+
image:Visual Studio 2022
25
environment:
3-
global:
4-
PATH:"C:\\Python27\\Scripts\\;%PATH%"
56
matrix:
6-
-TOXENV:py27-base
7-
-TOXENV:py27-optional
8-
-TOXENV:py35-base
9-
-TOXENV:py35-optional
10-
-TOXENV:py36-base
11-
-TOXENV:py36-optional
7+
-PY_PYTHON:2.7
8+
TOXENV:py27-base
9+
-PY_PYTHON:2.7
10+
TOXENV:py27-optional
11+
-PY_PYTHON:3.7
12+
TOXENV:py37-base
13+
-PY_PYTHON:3.7
14+
TOXENV:py37-optional
1215

1316
install:
1417
-git submodule update --init --recursive
15-
-python -m pip install tox
18+
-py --list
19+
-py -VV
20+
-py -m pip install --upgrade pip
21+
-py -m pip install tox
1622

1723
build:off
1824

1925
test_script:
20-
-tox
26+
-py -mtox
2127

2228
after_test:
23-
-python debug-info.py
29+
-py debug-info.py

‎.github/workflows/python-tox.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,35 @@ jobs:
77
strategy:
88
fail-fast:false
99
matrix:
10-
# 2.7, 3.5,and 3.6 run on Windows via AppVeyor
11-
python:["3.7", "3.8", "3.9", "3.10", "3.11"]
10+
# 2.7and 3.7 run on Windows via AppVeyor
11+
python:["3.8", "3.9", "3.10", "3.11", "3.12"]
1212
os:[ubuntu-latest, windows-latest]
1313
deps:[base, optional]
1414
include:
1515
-python:"pypy-2.7"
1616
os:ubuntu-latest
1717
deps:base
18-
-python:"pypy-3.8"
18+
-python:"pypy-3.10"
1919
os:ubuntu-latest
2020
deps:base
21-
-python:"2.7"
22-
os:ubuntu-latest
23-
deps:oldest
24-
-python:"3.7"
21+
-python:"3.8"
2522
os:ubuntu-latest
2623
deps:oldest
2724
runs-on:${{ matrix.os }}
2825
steps:
29-
-uses:actions/checkout@v3
26+
-uses:actions/checkout@v4
3027
with:
3128
submodules:true
3229
-if:${{ matrix.deps == 'base' }}
33-
uses:actions/setup-python@v4
30+
uses:actions/setup-python@v5
3431
with:
3532
python-version:${{ matrix.python }}
3633
cache:pip
3734
cache-dependency-path:|
3835
requirements.txt
3936
requirements-test.txt
4037
-if:${{ matrix.deps == 'optional' }}
41-
uses:actions/setup-python@v4
38+
uses:actions/setup-python@v5
4239
with:
4340
python-version:${{ matrix.python }}
4441
cache:pip
@@ -47,7 +44,7 @@ jobs:
4744
requirements-optional.txt
4845
requirements-test.txt
4946
-if:${{ matrix.deps == 'oldest' }}
50-
uses:actions/setup-python@v4
47+
uses:actions/setup-python@v5
5148
with:
5249
python-version:${{ matrix.python }}
5350
cache:pip

‎html5lib/tests/tokenizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ def runtest(self):
246246
defrepr_failure(self,excinfo):
247247
traceback=excinfo.traceback
248248
ntraceback=traceback.cut(path=__file__)
249-
excinfo.traceback=ntraceback.filter()
249+
pytest_ver=getattr(pytest,"version_tuple", ())
250+
filter_args= (excinfo,)ifpytest_ver>= (7,4,0)else ()
251+
excinfo.traceback=ntraceback.filter(*filter_args)
250252

251253
returnexcinfo.getrepr(funcargs=True,
252254
showlocals=False,

‎html5lib/tests/tree_construction.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ def runtest(self):
135135
defrepr_failure(self,excinfo):
136136
traceback=excinfo.traceback
137137
ntraceback=traceback.cut(path=__file__)
138-
excinfo.traceback=ntraceback.filter()
138+
pytest_ver=getattr(pytest,"version_tuple", ())
139+
filter_args= (excinfo,)ifpytest_ver>= (7,4,0)else ()
140+
excinfo.traceback=ntraceback.filter(*filter_args)
139141

140142
returnexcinfo.getrepr(funcargs=True,
141143
showlocals=False,

‎requirements-test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
flake8==3.9.2 ; python_version < '3.6'
44
flake8>=5.0.4; python_version >= '3.6'
55
pytest>=4.6.10,<5 ; python_version < '3'
6-
pytest>=5.4.2,<7 ; python_version >= '3'
6+
pytest>=5.4.2,<8 ; python_version >= '3'
77
coverage>=5.1,<6
88
pytest-expect>=1.1.0,<2
99
mock>=3.0.5,<4 ; python_version < '3.6'
1010
mock>=4.0.2,<5 ; python_version >= '3.6'
11+
setuptools; python_version >= '3.12'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp