Skip to content

Commit 094e892

Browse files
committed
Merge remote-tracking branch 'origin/disable_assertion_rewriting_external_modules' into disable_assertion_rewriting_external_modules
# Conflicts: # testing/test_assertrewrite.py
2 parents b3d8825 + 66a68e3 commit 094e892

File tree

204 files changed

+9385
-2617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+9385
-2617
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# To "install" it:
77
#
8-
# git config --local blame.ignoreRevsFile .gitblameignore
8+
# git config --local blame.ignoreRevsFile .git-blame-ignore-revs
99

1010
# run black
1111
703e4b11ba76171eccd3f13e723c47b810ded7ef

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# info:
22
# * https://help.github.com/en/articles/displaying-a-sponsor-button-in-your-repository
33
# * https://tidelift.com/subscription/how-to-connect-tidelift-with-github
4+
github: pytest-dev
45
tidelift: pypi/pytest
56
open_collective: pytest
7+
thanks_dev: u/gh/pytest-dev

.github/workflows/deploy.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
persist-credentials: false
3232

3333
- name: Build and Check Package
34-
uses: hynek/build-and-inspect-python-package@v2.10.0
34+
uses: hynek/build-and-inspect-python-package@v2.12.0
3535
with:
3636
attest-build-provenance-github: 'true'
3737

@@ -46,6 +46,8 @@ jobs:
4646
contents: write
4747
steps:
4848
- uses: actions/checkout@v4
49+
with:
50+
persist-credentials: true
4951

5052
- name: Download Package
5153
uses: actions/download-artifact@v4
@@ -54,16 +56,18 @@ jobs:
5456
path: dist
5557

5658
- name: Publish package to PyPI
57-
uses: pypa/[email protected].2
59+
uses: pypa/[email protected].4
5860
with:
5961
attestations: true
6062

6163
- name: Push tag
64+
env:
65+
VERSION: ${{ github.event.inputs.version }}
6266
run: |
6367
git config user.name "pytest bot"
6468
git config user.email "[email protected]"
65-
git tag --annotate --message=v${{ github.event.inputs.version }} ${{ github.event.inputs.version }} ${{ github.sha }}
66-
git push origin ${{ github.event.inputs.version }}
69+
git tag --annotate --message=v"$VERSION" "$VERSION" ${{ github.sha }}
70+
git push origin "$VERSION"
6771
6872
release-notes:
6973

@@ -98,9 +102,11 @@ jobs:
98102
pip install --upgrade tox
99103
100104
- name: Generate release notes
105+
env:
106+
VERSION: ${{ github.event.inputs.version }}
101107
run: |
102108
sudo apt-get install pandoc
103-
tox -e generate-gh-release-notes -- ${{ github.event.inputs.version }} scripts/latest-release-notes.md
109+
tox -e generate-gh-release-notes -- "$VERSION" scripts/latest-release-notes.md
104110
105111
- name: Publish GitHub Release
106112
uses: softprops/action-gh-release@v2

.github/workflows/prepare-release-pr.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ jobs:
3030
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
33+
# persist-credentials is needed in order for us to push the release branch.
34+
persist-credentials: true
3335

3436
- name: Set up Python
3537
uses: actions/setup-python@v5
3638
with:
37-
python-version: "3.8"
39+
python-version: "3.x"
3840

3941
- name: Install dependencies
4042
run: |
@@ -43,10 +45,18 @@ jobs:
4345
4446
- name: Prepare release PR (minor/patch release)
4547
if: github.event.inputs.major == 'no'
48+
env:
49+
BRANCH: ${{ github.event.inputs.branch }}
50+
PRERELEASE: ${{ github.event.inputs.prerelease }}
51+
GH_TOKEN: ${{ github.token }}
4652
run: |
47-
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --prerelease='${{ github.event.inputs.prerelease }}'
53+
tox -e prepare-release-pr -- "$BRANCH" --prerelease="$PRERELEASE"
4854
4955
- name: Prepare release PR (major release)
5056
if: github.event.inputs.major == 'yes'
57+
env:
58+
BRANCH: ${{ github.event.inputs.branch }}
59+
PRERELEASE: ${{ github.event.inputs.prerelease }}
60+
GH_TOKEN: ${{ github.token }}
5161
run: |
52-
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --major --prerelease='${{ github.event.inputs.prerelease }}'
62+
tox -e prepare-release-pr -- "$BRANCH" --major --prerelease="$PRERELEASE"

.github/workflows/test.yml

Lines changed: 60 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fetch-depth: 0
4141
persist-credentials: false
4242
- name: Build and Check Package
43-
uses: hynek/build-and-inspect-python-package@v2.10.0
43+
uses: hynek/build-and-inspect-python-package@v2.12.0
4444

4545
build:
4646
needs: [package]
@@ -54,25 +54,24 @@ jobs:
5454
fail-fast: false
5555
matrix:
5656
name: [
57-
"windows-py38",
58-
"windows-py38-pluggy",
59-
"windows-py39",
57+
"windows-py39-unittestextras",
58+
"windows-py39-pluggy",
59+
"windows-py39-xdist",
6060
"windows-py310",
6161
"windows-py311",
6262
"windows-py312",
6363
"windows-py313",
6464

65-
"ubuntu-py38",
66-
"ubuntu-py38-pluggy",
67-
"ubuntu-py38-freeze",
68-
"ubuntu-py39",
69-
"ubuntu-py310",
65+
"ubuntu-py39-lsof-numpy-pexpect",
66+
"ubuntu-py39-pluggy",
67+
"ubuntu-py39-freeze",
68+
"ubuntu-py39-xdist",
69+
"ubuntu-py310-xdist",
7070
"ubuntu-py311",
7171
"ubuntu-py312",
72-
"ubuntu-py313",
73-
"ubuntu-pypy3",
72+
"ubuntu-py313-pexpect",
73+
"ubuntu-pypy3-xdist",
7474

75-
"macos-py38",
7675
"macos-py39",
7776
"macos-py310",
7877
"macos-py312",
@@ -83,106 +82,123 @@ jobs:
8382
]
8483

8584
include:
86-
- name: "windows-py38"
87-
python: "3.8"
85+
- name: "windows-py39-unittestextras"
86+
python: "3.9"
8887
os: windows-latest
89-
tox_env: "py38-unittestextras"
88+
tox_env: "py39-unittestextras"
9089
use_coverage: true
91-
- name: "windows-py38-pluggy"
92-
python: "3.8"
90+
91+
- name: "windows-py39-pluggy"
92+
python: "3.9"
9393
os: windows-latest
94-
tox_env: "py38-pluggymain-pylib-xdist"
95-
- name: "windows-py39"
94+
tox_env: "py39-pluggymain-pylib-xdist"
95+
96+
- name: "windows-py39-xdist"
9697
python: "3.9"
9798
os: windows-latest
9899
tox_env: "py39-xdist"
100+
99101
- name: "windows-py310"
100102
python: "3.10"
101103
os: windows-latest
102104
tox_env: "py310-xdist"
105+
103106
- name: "windows-py311"
104107
python: "3.11"
105108
os: windows-latest
106109
tox_env: "py311"
110+
107111
- name: "windows-py312"
108112
python: "3.12"
109113
os: windows-latest
110114
tox_env: "py312"
115+
111116
- name: "windows-py313"
112-
python: "3.13-dev"
117+
python: "3.13"
113118
os: windows-latest
114119
tox_env: "py313"
115120

116-
- name: "ubuntu-py38"
117-
python: "3.8"
121+
122+
- name: "ubuntu-py39-lsof-numpy-pexpect"
123+
python: "3.9"
118124
os: ubuntu-latest
119-
tox_env: "py38-lsof-numpy-pexpect"
125+
tox_env: "py39-lsof-numpy-pexpect"
120126
use_coverage: true
121-
- name: "ubuntu-py38-pluggy"
122-
python: "3.8"
127+
128+
- name: "ubuntu-py39-pluggy"
129+
python: "3.9"
123130
os: ubuntu-latest
124-
tox_env: "py38-pluggymain-pylib-xdist"
125-
- name: "ubuntu-py38-freeze"
126-
python: "3.8"
131+
tox_env: "py39-pluggymain-pylib-xdist"
132+
133+
- name: "ubuntu-py39-freeze"
134+
python: "3.9"
127135
os: ubuntu-latest
128-
tox_env: "py38-freeze"
129-
- name: "ubuntu-py39"
136+
tox_env: "py39-freeze"
137+
138+
- name: "ubuntu-py39-xdist"
130139
python: "3.9"
131140
os: ubuntu-latest
132141
tox_env: "py39-xdist"
133-
- name: "ubuntu-py310"
142+
143+
- name: "ubuntu-py310-xdist"
134144
python: "3.10"
135145
os: ubuntu-latest
136146
tox_env: "py310-xdist"
147+
137148
- name: "ubuntu-py311"
138149
python: "3.11"
139150
os: ubuntu-latest
140151
tox_env: "py311"
141152
use_coverage: true
153+
142154
- name: "ubuntu-py312"
143155
python: "3.12"
144156
os: ubuntu-latest
145157
tox_env: "py312"
146158
use_coverage: true
147-
- name: "ubuntu-py313"
148-
python: "3.13-dev"
159+
160+
- name: "ubuntu-py313-pexpect"
161+
python: "3.13"
149162
os: ubuntu-latest
150163
tox_env: "py313-pexpect"
151164
use_coverage: true
152-
- name: "ubuntu-pypy3"
165+
166+
- name: "ubuntu-pypy3-xdist"
153167
python: "pypy-3.9"
154168
os: ubuntu-latest
155169
tox_env: "pypy3-xdist"
156170

157-
- name: "macos-py38"
158-
python: "3.8"
159-
os: macos-latest
160-
tox_env: "py38-xdist"
171+
161172
- name: "macos-py39"
162173
python: "3.9"
163174
os: macos-latest
164175
tox_env: "py39-xdist"
165176
use_coverage: true
177+
166178
- name: "macos-py310"
167179
python: "3.10"
168180
os: macos-latest
169181
tox_env: "py310-xdist"
182+
170183
- name: "macos-py312"
171184
python: "3.12"
172185
os: macos-latest
173186
tox_env: "py312-xdist"
187+
174188
- name: "macos-py313"
175-
python: "3.13-dev"
189+
python: "3.13"
176190
os: macos-latest
177191
tox_env: "py313-xdist"
178192

193+
179194
- name: "plugins"
180195
python: "3.12"
181196
os: ubuntu-latest
182197
tox_env: "plugins"
183198

199+
184200
- name: "doctesting"
185-
python: "3.8"
201+
python: "3.9"
186202
os: ubuntu-latest
187203
tox_env: "doctesting"
188204
use_coverage: true
@@ -192,12 +208,12 @@ jobs:
192208
contains(
193209
fromJSON(
194210
'[
195-
"windows-py38-pluggy",
211+
"windows-py39-pluggy",
196212
"windows-py313",
197-
"ubuntu-py38-pluggy",
198-
"ubuntu-py38-freeze",
213+
"ubuntu-py39-pluggy",
214+
"ubuntu-py39-freeze",
199215
"ubuntu-py313",
200-
"macos-py38",
216+
"macos-py39",
201217
"macos-py313"
202218
]'
203219
),

.github/workflows/update-plugin-list.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
26+
persist-credentials: false
2627

2728
- name: Setup Python
2829
uses: actions/setup-python@v5
2930
with:
3031
python-version: "3.11"
3132
cache: pip
33+
3234
- name: requests-cache
3335
uses: actions/cache@v4
3436
with:
@@ -41,13 +43,12 @@ jobs:
4143
python -m pip install --upgrade pip
4244
pip install packaging requests tabulate[widechars] tqdm requests-cache platformdirs
4345
44-
4546
- name: Update Plugin List
4647
run: python scripts/update-plugin-list.py
4748

4849
- name: Create Pull Request
4950
id: pr
50-
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
51+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
5152
with:
5253
commit-message: '[automated] Update plugin list'
5354
author: 'pytest bot <[email protected]>'
@@ -61,8 +62,9 @@ jobs:
6162
- name: Instruct the maintainers to trigger CI by undrafting the PR
6263
env:
6364
GITHUB_TOKEN: ${{ github.token }}
65+
PULL_REQUEST_NUMBER: ${{ steps.pr.outputs.pull-request-number }}
6466
run: >-
6567
gh pr comment
6668
--body 'Please mark the PR as ready for review to trigger PR checks.'
6769
--repo '${{ github.repository }}'
68-
'${{ steps.pr.outputs.pull-request-number }}'
70+
"$PULL_REQUEST_NUMBER"

0 commit comments

Comments
 (0)