Skip to content

Commit 7cf8c0f

Browse files
authored
Update pytest & running tailor in CI (#119)
see: #109 (comment)
1 parent afa8d82 commit 7cf8c0f

File tree

3 files changed

+48
-75
lines changed

3 files changed

+48
-75
lines changed

.github/workflows/pants.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
# See https://pants.readme.io/docs/using-pants-in-ci for tips on how to periodically clean it up.
4747
# Alternatively you change gha-cache-key to ignore old caches.
4848
- name: Check BUILD files
49-
run: ./pants tailor --check update-build-files --check
49+
run: |
50+
./pants tailor --check update-build-files --check ::
5051
- name: Lint and typecheck
5152
run: |
5253
./pants lint check ::

python-default.lock

Lines changed: 45 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// ],
1111
// "generated_with_requirements": [
1212
// "ansicolors==1.1.8",
13-
// "pytest==7.0.1",
13+
// "pytest==7.1.3",
1414
// "setuptools<57,>=56.2.0",
1515
// "types-setuptools<58,>=56.2.0"
1616
// ],
@@ -52,89 +52,83 @@
5252
"artifacts": [
5353
{
5454
"algorithm": "sha256",
55-
"hash": "86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c",
56-
"url": "https://files.pythonhosted.org/packages/f2/bc/d817287d1aa01878af07c19505fafd1165cd6a119e9d0821ca1d1c20312d/attrs-22.1.0-py2.py3-none-any.whl"
55+
"hash": "29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836",
56+
"url": "https://files.pythonhosted.org/packages/fb/6e/6f83bf616d2becdf333a1640f1d463fef3150e2e926b7010cb0f81c95e88/attrs-22.2.0-py3-none-any.whl"
5757
},
5858
{
5959
"algorithm": "sha256",
60-
"hash": "29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6",
61-
"url": "https://files.pythonhosted.org/packages/1a/cb/c4ffeb41e7137b23755a45e1bfec9cbb76ecf51874c6f1d113984ecaa32c/attrs-22.1.0.tar.gz"
60+
"hash": "c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99",
61+
"url": "https://files.pythonhosted.org/packages/21/31/3f468da74c7de4fcf9b25591e682856389b3400b4b62f201e65f15ea3e07/attrs-22.2.0.tar.gz"
6262
}
6363
],
6464
"project_name": "attrs",
6565
"requires_dists": [
66-
"cloudpickle; platform_python_implementation == \"CPython\" and extra == \"dev\"",
67-
"cloudpickle; platform_python_implementation == \"CPython\" and extra == \"tests\"",
66+
"attrs[docs,tests]; extra == \"dev\"",
67+
"attrs[tests-no-zope]; extra == \"tests\"",
68+
"attrs[tests]; extra == \"cov\"",
69+
"cloudpickle; platform_python_implementation == \"CPython\" and extra == \"tests-no-zope\"",
6870
"cloudpickle; platform_python_implementation == \"CPython\" and extra == \"tests_no_zope\"",
69-
"coverage[toml]>=5.0.2; extra == \"dev\"",
70-
"coverage[toml]>=5.0.2; extra == \"tests\"",
71-
"coverage[toml]>=5.0.2; extra == \"tests_no_zope\"",
72-
"furo; extra == \"dev\"",
71+
"coverage-enable-subprocess; extra == \"cov\"",
72+
"coverage[toml]>=5.3; extra == \"cov\"",
7373
"furo; extra == \"docs\"",
74-
"hypothesis; extra == \"dev\"",
75-
"hypothesis; extra == \"tests\"",
74+
"hypothesis; extra == \"tests-no-zope\"",
7675
"hypothesis; extra == \"tests_no_zope\"",
77-
"mypy!=0.940,>=0.900; extra == \"dev\"",
78-
"mypy!=0.940,>=0.900; extra == \"tests\"",
79-
"mypy!=0.940,>=0.900; extra == \"tests_no_zope\"",
80-
"pre-commit; extra == \"dev\"",
81-
"pympler; extra == \"dev\"",
82-
"pympler; extra == \"tests\"",
76+
"mypy<0.990,>=0.971; platform_python_implementation == \"CPython\" and extra == \"tests-no-zope\"",
77+
"mypy<0.990,>=0.971; platform_python_implementation == \"CPython\" and extra == \"tests_no_zope\"",
78+
"myst-parser; extra == \"docs\"",
79+
"pympler; extra == \"tests-no-zope\"",
8380
"pympler; extra == \"tests_no_zope\"",
84-
"pytest-mypy-plugins; extra == \"dev\"",
85-
"pytest-mypy-plugins; extra == \"tests\"",
86-
"pytest-mypy-plugins; extra == \"tests_no_zope\"",
87-
"pytest>=4.3.0; extra == \"dev\"",
88-
"pytest>=4.3.0; extra == \"tests\"",
81+
"pytest-mypy-plugins; (platform_python_implementation == \"CPython\" and python_version < \"3.11\") and extra == \"tests-no-zope\"",
82+
"pytest-mypy-plugins; (platform_python_implementation == \"CPython\" and python_version < \"3.11\") and extra == \"tests_no_zope\"",
83+
"pytest-xdist[psutil]; extra == \"tests-no-zope\"",
84+
"pytest-xdist[psutil]; extra == \"tests_no_zope\"",
85+
"pytest>=4.3.0; extra == \"tests-no-zope\"",
8986
"pytest>=4.3.0; extra == \"tests_no_zope\"",
90-
"sphinx-notfound-page; extra == \"dev\"",
9187
"sphinx-notfound-page; extra == \"docs\"",
92-
"sphinx; extra == \"dev\"",
9388
"sphinx; extra == \"docs\"",
94-
"zope.interface; extra == \"dev\"",
89+
"sphinxcontrib-towncrier; extra == \"docs\"",
90+
"towncrier; extra == \"docs\"",
9591
"zope.interface; extra == \"docs\"",
9692
"zope.interface; extra == \"tests\""
9793
],
98-
"requires_python": ">=3.5",
99-
"version": "22.1"
94+
"requires_python": ">=3.6",
95+
"version": "22.2"
10096
},
10197
{
10298
"artifacts": [
10399
{
104100
"algorithm": "sha256",
105-
"hash": "011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3",
106-
"url": "https://files.pythonhosted.org/packages/9b/dd/b3c12c6d707058fa947864b67f0c4e0c39ef8610988d7baea9578f3c48f3/iniconfig-1.1.1-py2.py3-none-any.whl"
101+
"hash": "b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374",
102+
"url": "https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl"
107103
},
108104
{
109105
"algorithm": "sha256",
110-
"hash": "bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32",
111-
"url": "https://files.pythonhosted.org/packages/23/a2/97899f6bd0e873fed3a7e67ae8d3a08b21799430fb4da15cfedf10d6e2c2/iniconfig-1.1.1.tar.gz"
106+
"hash": "2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3",
107+
"url": "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz"
112108
}
113109
],
114110
"project_name": "iniconfig",
115111
"requires_dists": [],
116-
"requires_python": null,
117-
"version": "1.1.1"
112+
"requires_python": ">=3.7",
113+
"version": "2"
118114
},
119115
{
120116
"artifacts": [
121117
{
122118
"algorithm": "sha256",
123-
"hash": "ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522",
124-
"url": "https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl"
119+
"hash": "714ac14496c3e68c99c29b00845f7a2b85f3bb6f1078fd9f72fd20f0570002b2",
120+
"url": "https://files.pythonhosted.org/packages/ed/35/a31aed2993e398f6b09a790a181a7927eb14610ee8bbf02dc14d31677f1c/packaging-23.0-py3-none-any.whl"
125121
},
126122
{
127123
"algorithm": "sha256",
128-
"hash": "dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb",
129-
"url": "https://files.pythonhosted.org/packages/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.tar.gz"
124+
"hash": "b6ad297f8907de0fa2fe1ccbd26fdaf387f5f47c7275fedf8cce89f99446cf97",
125+
"url": "https://files.pythonhosted.org/packages/47/d5/aca8ff6f49aa5565df1c826e7bf5e85a6df852ee063600c1efa5b932968c/packaging-23.0.tar.gz"
130126
}
131127
],
132128
"project_name": "packaging",
133-
"requires_dists": [
134-
"pyparsing!=3.0.5,>=2.0.2"
135-
],
136-
"requires_python": ">=3.6",
137-
"version": "21.3"
129+
"requires_dists": [],
130+
"requires_python": ">=3.7",
131+
"version": "23"
138132
},
139133
{
140134
"artifacts": [
@@ -182,40 +176,18 @@
182176
"artifacts": [
183177
{
184178
"algorithm": "sha256",
185-
"hash": "5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc",
186-
"url": "https://files.pythonhosted.org/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl"
179+
"hash": "1377bda3466d70b55e3f5cecfa55bb7cfcf219c7964629b967c37cf0bda818b7",
180+
"url": "https://files.pythonhosted.org/packages/e3/b9/3541bbcb412a9fd56593005ff32183825634ef795a1c01ceb6dee86e7259/pytest-7.1.3-py3-none-any.whl"
187181
},
188182
{
189183
"algorithm": "sha256",
190-
"hash": "2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb",
191-
"url": "https://files.pythonhosted.org/packages/71/22/207523d16464c40a0310d2d4d8926daffa00ac1f5b1576170a32db749636/pyparsing-3.0.9.tar.gz"
192-
}
193-
],
194-
"project_name": "pyparsing",
195-
"requires_dists": [
196-
"jinja2; extra == \"diagrams\"",
197-
"railroad-diagrams; extra == \"diagrams\""
198-
],
199-
"requires_python": ">=3.6.8",
200-
"version": "3.0.9"
201-
},
202-
{
203-
"artifacts": [
204-
{
205-
"algorithm": "sha256",
206-
"hash": "9ce3ff477af913ecf6321fe337b93a2c0dcf2a0a1439c43f5452112c1e4280db",
207-
"url": "https://files.pythonhosted.org/packages/38/93/c7c0bd1e932b287fb948eb9ce5a3d6307c9fc619db1e199f8c8bc5dad95f/pytest-7.0.1-py3-none-any.whl"
208-
},
209-
{
210-
"algorithm": "sha256",
211-
"hash": "e30905a0c131d3d94b89624a1cc5afec3e0ba2fbdb151867d8e0ebd49850f171",
212-
"url": "https://files.pythonhosted.org/packages/3e/2c/a67ad48759051c7abf82ce182a4e6d766de371b183182d2dde03089e8dfb/pytest-7.0.1.tar.gz"
184+
"hash": "4f365fec2dff9c1162f834d9f18af1ba13062db0c708bf7b946f8a5c76180c39",
185+
"url": "https://files.pythonhosted.org/packages/a4/a7/8c63a4966935b0d0b039fd67ebf2e1ae00f1af02ceb912d838814d772a9a/pytest-7.1.3.tar.gz"
213186
}
214187
],
215188
"project_name": "pytest",
216189
"requires_dists": [
217190
"argcomplete; extra == \"testing\"",
218-
"atomicwrites>=1.0; sys_platform == \"win32\"",
219191
"attrs>=19.2.0",
220192
"colorama; sys_platform == \"win32\"",
221193
"hypothesis>=3.56; extra == \"testing\"",
@@ -231,8 +203,8 @@
231203
"tomli>=1.0.0",
232204
"xmlschema; extra == \"testing\""
233205
],
234-
"requires_python": ">=3.6",
235-
"version": "7.0.1"
206+
"requires_python": ">=3.7",
207+
"version": "7.1.3"
236208
},
237209
{
238210
"artifacts": [
@@ -324,7 +296,7 @@
324296
"prefer_older_binary": false,
325297
"requirements": [
326298
"ansicolors==1.1.8",
327-
"pytest==7.0.1",
299+
"pytest==7.1.3",
328300
"setuptools<57,>=56.2.0",
329301
"types-setuptools<58,>=56.2.0"
330302
],

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
ansicolors==1.1.8
55
setuptools>=56.2.0,<57
66
types-setuptools>=56.2.0,<58
7-
pytest==7.0.1
7+
pytest==7.1.3

0 commit comments

Comments
 (0)