Skip to content

Commit d9159a3

Browse files
committed
Merge branch 'main' into no-cache-fixture
2 parents f014d55 + e63f6e5 commit d9159a3

File tree

193 files changed

+12907
-3624
lines changed

Some content is hidden

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

193 files changed

+12907
-3624
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ exclude_lines =
2929

3030
^\s*if TYPE_CHECKING:
3131
^\s*@overload( |$)
32+
^\s*def .+: \.\.\.$
3233

3334
^\s*@pytest\.mark\.xfail

.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: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
attestations: write
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
with:
3030
fetch-depth: 0
3131
persist-credentials: false
3232

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

@@ -45,25 +45,29 @@ jobs:
4545
id-token: write
4646
contents: write
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@v5
49+
with:
50+
persist-credentials: true
4951

5052
- name: Download Package
51-
uses: actions/download-artifact@v4
53+
uses: actions/download-artifact@v5
5254
with:
5355
name: Packages
5456
path: dist
5557

5658
- name: Publish package to PyPI
57-
uses: pypa/gh-action-pypi-publish@v1.10.2
59+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
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

@@ -76,13 +80,13 @@ jobs:
7680
permissions:
7781
contents: write
7882
steps:
79-
- uses: actions/checkout@v4
83+
- uses: actions/checkout@v5
8084
with:
8185
fetch-depth: 0
8286
persist-credentials: false
8387

8488
- name: Download Package
85-
uses: actions/download-artifact@v4
89+
uses: actions/download-artifact@v5
8690
with:
8791
name: Packages
8892
path: dist
@@ -98,13 +102,15 @@ 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
106-
uses: softprops/action-gh-release@v2
107-
with:
108-
body_path: scripts/latest-release-notes.md
109-
files: dist/*
110-
tag_name: ${{ github.event.inputs.version }}
112+
env:
113+
VERSION: ${{ github.event.inputs.version }}
114+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
run: |
116+
gh release create --notes-file scripts/latest-release-notes.md --verify-tag "$VERSION" dist/*

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ jobs:
2727
pull-requests: write
2828

2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
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"

0 commit comments

Comments
 (0)