Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
bc33028
Prepare release version 8.3.0
pytestbot Jul 20, 2024
19d225d
Merge pull request #12635 from pytest-dev/release-8.3.0
bluetech Jul 20, 2024
664325b
doc/changelog: update 8.3.0 notes
nicoddemus Jul 20, 2024
bd0a042
Merge pull request #12636 from pytest-dev/update-release-notes
bluetech Jul 20, 2024
de98446
Prepare release version 8.3.1
pytestbot Jul 20, 2024
ca3070b
Merge pull request #12637 from pytest-dev/release-8.3.1
bluetech Jul 20, 2024
31337ab
Merge pull request #12640 from pytest-dev/update-user
bluetech Jul 21, 2024
ae6034a
Merge pull request #12641 from pytest-dev/patchback/backports/8.3.x/c…
bluetech Jul 21, 2024
238bad2
Merge pull request #12656 from RonnyPfannschmidt/fix-12652-detect-con…
RonnyPfannschmidt Jul 24, 2024
78fe8b6
Merge pull request #12657 from pytest-dev/patchback/backports/8.3.x/6…
RonnyPfannschmidt Jul 24, 2024
bbcec9c
Prepare release version 8.3.2
pytestbot Jul 24, 2024
c77a96d
Merge pull request #12675 from nicoddemus/pin-towncrier
nicoddemus Aug 1, 2024
918ce70
Merge pull request #12676 from pytest-dev/patchback/backports/8.3.x/f…
webknjaz Aug 1, 2024
7b62fef
Merge pull request #12660 from pytest-dev/release-8.3.2
RonnyPfannschmidt Aug 1, 2024
32f9951
Merge pull request #12679 from RFCArrow/tmp_path_retention_policy-exa…
patchback[bot] Aug 3, 2024
dcff37a
Obey verbosity level when printing 'msg' part of assertions (#12662) …
patchback[bot] Aug 5, 2024
de6824f
Add merge/squash guidelines to CONTRIBUTING.rst (#12672) (#12692)
patchback[bot] Aug 6, 2024
ae7959a
Add Pierre to official contacts (#12694) (#12695)
patchback[bot] Aug 6, 2024
74caad9
docs: Revise `cache_dir` option section (#12701) (#12703)
patchback[bot] Aug 9, 2024
8fb7fae
Fix `errisinstance` typing (#12700) (#12704)
patchback[bot] Aug 9, 2024
6d59143
docs: clarify `pytest_deselected`/`pytest_collection_modifyitems` usa…
patchback[bot] Aug 22, 2024
2d5618e
Replaced `typing.Self` with `typing_extensions.Self` (#12744)
Avasam Aug 29, 2024
cafc729
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 22, 2024
c185df6
[pre-commit.ci] pre-commit autoupdate (#12669)
pre-commit-ci[bot] Jul 30, 2024
3b82956
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 5, 2024
0765c55
Replace types-pkg-resources by types-setuptools
nicoddemus Aug 7, 2024
d2bb828
[pre-commit.ci] pre-commit autoupdate (#12712)
pre-commit-ci[bot] Aug 14, 2024
87bc32f
[pre-commit.ci] pre-commit autoupdate (#12725)
pre-commit-ci[bot] Aug 20, 2024
eaf553d
[pre-commit.ci] pre-commit autoupdate (#12741)
pre-commit-ci[bot] Aug 27, 2024
6af50c0
Adapt code after updating to mypy 1.11
nicoddemus Jul 23, 2024
e22c188
Merge pull request #12746 from pytest-dev/patchback/backports/8.3.x/c…
nicoddemus Aug 29, 2024
be9e36e
Use oldest supported Python in mypy pre-commit checks (#12747) (#12750)
patchback[bot] Aug 29, 2024
bf379f4
Fix assertion rewriting with importlib mode (#12716) (#12755)
patchback[bot] Aug 30, 2024
2dfea27
Merge pull request #12761 from pytest-dev/dependabot/github_actions/p…
webknjaz Sep 2, 2024
ae08146
Merge pull request #12768 from pytest-dev/patchback/backports/8.3.x/c…
webknjaz Sep 3, 2024
4873394
doc: Remove past training (#12772) (#12773)
patchback[bot] Sep 3, 2024
01cfcc9
Fix typos and introduce codespell pre-commit hook (#12769) (#12774)
patchback[bot] Sep 3, 2024
bc913d1
Streamline checks for verbose option (#12706) (#12778)
patchback[bot] Sep 5, 2024
e5d32c7
Merge pull request #12784 from svenevs/fix/docs-example-parametrize-m…
webknjaz Sep 7, 2024
300d13d
Merge pull request #12785 from pytest-dev/patchback/backports/8.3.x/5…
webknjaz Sep 7, 2024
0f10b6b
Fix issue with slashes being turned into backslashes on Windows (#127…
patchback[bot] Sep 8, 2024
a9910a4
Do not discover properties when iterating fixtures (#12781) (#12788)
patchback[bot] Sep 8, 2024
0dabdcf
Include co-authors in release announcement (#12795) (#12797)
patchback[bot] Sep 9, 2024
972f307
Prepare release version 8.3.3
pytestbot Sep 9, 2024
d0f136f
build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 (…
dependabot[bot] Sep 9, 2024
03d8fb7
Merge pull request #12798 from pytest-dev/release-8.3.3
nicoddemus Sep 10, 2024
0cfca08
Added Databricks fixture plugin for PyTest (#12826) (#12827)
patchback[bot] Sep 19, 2024
dd259f6
Merge pull request #12829 from Dreamsorcerer/patch-1
webknjaz Sep 21, 2024
6178e44
Merge pull request #12830 from pytest-dev/patchback/backports/8.3.x/d…
webknjaz Sep 21, 2024
72c9c35
Docs: improve "How to capture stdout/stderr output" (#12840) (#12841)
patchback[bot] Sep 25, 2024
3d3ec57
Fix KeyError with importlib mode (directories with same name) (#12752…
patchback[bot] Sep 26, 2024
40741c4
Preserve source positions for assertion rewriting (#12867)
patchback[bot] Oct 9, 2024
09da0de
Docs: improve/cleanup reference from/to recwarn (#12866) (#12870)
patchback[bot] Oct 10, 2024
d450afe
[pre-commit] Use --python-version for mypy instead of forcing a pytho…
patchback[bot] Oct 10, 2024
5b6a8d6
Merge pull request #12872 from Pierre-Sassoulas/fix-pre-commit-python…
webknjaz Oct 10, 2024
1eb6007
Merge pull request #12873 from pytest-dev/patchback/backports/8.3.x/f…
webknjaz Oct 10, 2024
6fe6382
Improve pytest.Config.getoption docstring (#12886)
nicoddemus Oct 13, 2024
fb56f3d
Merge pull request #12889 from pytest-dev/patchback/backports/8.3.x/d…
webknjaz Oct 13, 2024
52135b0
Merge pull request #12885 from The-Compiler/pdb-py311 (#12887)
patchback[bot] Oct 13, 2024
6502816
Merge pull request #12913 from jakkdl/dontfailonbadpath
bluetech Oct 25, 2024
c875841
Merge pull request #12917 from pytest-dev/patchback/backports/8.3.x/d…
bluetech Oct 25, 2024
7aeb72b
Improve docs on basetemp and retention (#12912) (#12928)
patchback[bot] Oct 31, 2024
be6bc81
Issue #12966 Clarify filterwarnings docs on precedence when using mul…
patchback[bot] Nov 16, 2024
16cb87b
pytest.fail: fix ANSI escape codes for colored output (#12959) (#12990)
patchback[bot] Nov 25, 2024
b541721
docs: Fix wrong statement about sys.modules with importlib import mod…
patchback[bot] Nov 25, 2024
1b474e2
approx: use exact comparison for bool (#13013)
patchback[bot] Dec 1, 2024
98dff36
Prepare release version 8.3.4
pytestbot Dec 1, 2024
53f8b4e
Update pypa/gh-action-pypi-publish to v1.12.2
nicoddemus Dec 1, 2024
4707416
Merge pull request #13018 from pytest-dev/release-8.3.4
nicoddemus Dec 1, 2024
ade10c1
Merge pull request #13019 from nicoddemus/release-template (#13020)
patchback[bot] Dec 1, 2024
179b690
fix `AttributeError` crash when using `--import-mode=importlib` (#13…
patchback[bot] Dec 7, 2024
4e7af35
Fix `ImportError` crash when using `--import-mode=importlib` (#13053)…
patchback[bot] Dec 12, 2024
544bf20
Merge pull request #13064 from pytest-dev/dependabot/github_actions/p…
webknjaz Dec 16, 2024
64e0f23
Merge pull request #13066 from pytest-dev/patchback/backports/8.3.x/d…
webknjaz Dec 16, 2024
e4d842a
[8.3.x] ci: fix failing jobs due to pluggy requiring Python>=3.9
bluetech Dec 16, 2024
ebd23c1
Merge pull request #13068 from bluetech/eightthree-fix-ci-pluggy
nicoddemus Dec 16, 2024
c2abd05
ci: harden github actions according to "zizmor" recommendations (#130…
patchback[bot] Dec 16, 2024
763a1aa
Merge pull request #13069 from bluetech/zizmor-pre-commit
webknjaz Dec 16, 2024
a7d2fc3
Merge pull request #13070 from pytest-dev/patchback/backports/8.3.x/7…
webknjaz Dec 16, 2024
ad4081f
Merge pull request #13113 from The-Compiler/fix-pygments-whitespace
The-Compiler Jan 8, 2025
2c93423
Merge pull request #13116 from pytest-dev/patchback/backports/8.3.x/b…
The-Compiler Jan 8, 2025
f1c6bab
Fix crash when directory is removed during collection (#13086) (#13117)
patchback[bot] Jan 8, 2025
02519fd
Update links to microblogging pages (#13123) (#13127)
patchback[bot] Jan 12, 2025
ef06e43
Fix example in pytest_collection_modifyitems (#13152) (#13154)
patchback[bot] Jan 21, 2025
4dbec99
Fix sequences being shortened even with `-vv` verbosity. (#13163)
nicoddemus Jan 26, 2025
8728b1a
Update pythonpath.rst (#13181) (#13182)
patchback[bot] Feb 3, 2025
78cf1f6
ci: Bump build-and-inspect-python-package (#13188)
The-Compiler Feb 3, 2025
eb6496b
doc: Change training to remote only (#13196) (#13197)
patchback[bot] Feb 5, 2025
2ebba00
Merge pull request #13199 from jakkdl/tox_docs_no_fetch (#13200)
patchback[bot] Feb 7, 2025
edbfff7
doc: Clarify capturing .readouterr() return value (#13222) (#13225)
patchback[bot] Feb 15, 2025
b75cfb1
Add readline workaround for libedit (#13176)
The-Compiler Feb 3, 2025
3419674
Merge pull request #13187 from pytest-dev/patchback/backports/8.3.x/b…
webknjaz Feb 28, 2025
e5c2efe
Merge pull request #13256 from webknjaz/maintenance/towncrier-bump (#…
patchback[bot] Mar 1, 2025
2fa3f83
Add more resources and studies to flaky tests page in docs (#13250) (…
patchback[bot] Mar 1, 2025
e217726
Added dedicated page about using types with pytest #12842 (#12963) (#…
patchback[bot] Mar 1, 2025
b55ab2a
Prepare release version 8.3.5
pytestbot Mar 2, 2025
ef890f4
Integrate pytest-subtests (#13738)
nicoddemus Nov 1, 2025
010f62f
Ensure subtest's context kwargs are JSON serializable (#13963)
nicoddemus Dec 20, 2025
a7b6712
Merge branch 'main' into jdave--custom-release-branch
jdave-zip Jan 16, 2026
dbeb846
upgrade version
jdave-zip Jan 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[run]
include =
src/*
testing/*
*/lib/python*/site-packages/_pytest/*
*/lib/python*/site-packages/pytest.py
*/pypy*/site-packages/_pytest/*
*/pypy*/site-packages/pytest.py
*\Lib\site-packages\_pytest\*
*\Lib\site-packages\pytest.py
parallel = 1
branch = 1

[paths]
source = src/
*/lib/python*/site-packages/
*/pypy*/site-packages/
*\Lib\site-packages\

[report]
skip_covered = True
show_missing = True
exclude_lines =
\#\s*pragma: no cover
^\s*raise NotImplementedError\b
^\s*return NotImplemented\b
^\s*assert False(,|$)
^\s*case unreachable:
^\s*assert_never\(

^\s*if TYPE_CHECKING:
^\s*@overload( |$)

^\s*@pytest\.mark\.xfail
40 changes: 34 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
persist-credentials: false

- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516
uses: hynek/build-and-inspect-python-package@v2.12.0
with:
attest-build-provenance-github: 'true'

Expand Down Expand Up @@ -81,19 +81,36 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true

- name: Download Package
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: Packages
path: dist

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
uses: pypa/gh-action-pypi-publish@v1.12.3
with:
attestations: true

push-tag:
needs: [publish-to-pypi]
- name: Push tag
env:
VERSION: ${{ github.event.inputs.version }}
run: |
git config user.name "pytest bot"
git config user.email "pytestbot@gmail.com"
git tag --annotate --message=v"$VERSION" "$VERSION" ${{ github.sha }}
git push origin "$VERSION"

release-notes:

# todo: generate the content in the build job
# the goal being of using a github action script to push the release data
# after success instead of creating a complete python/tox env
needs: [deploy]
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand Down Expand Up @@ -129,8 +146,19 @@ jobs:
- name: Download release notes
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: release-notes
path: .
python-version: "3.11"

- name: Install tox
run: |
python -m pip install --upgrade pip
pip install --upgrade tox

- name: Generate release notes
env:
VERSION: ${{ github.event.inputs.version }}
run: |
sudo apt-get install pandoc
tox -e generate-gh-release-notes -- "$VERSION" scripts/latest-release-notes.md

- name: Publish GitHub Release
env:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/prepare-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
# persist-credentials is needed in order for us to push the release branch.
persist-credentials: true
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
Expand All @@ -48,15 +47,13 @@ jobs:
env:
BRANCH: ${{ github.event.inputs.branch }}
PRERELEASE: ${{ github.event.inputs.prerelease }}
GH_TOKEN: ${{ github.token }}
run: |
tox -e prepare-release-pr -- "$BRANCH" --prerelease="$PRERELEASE"
tox -e prepare-release-pr -- "$BRANCH" ${{ github.token }} --prerelease="$PRERELEASE"

- name: Prepare release PR (major release)
if: github.event.inputs.major == 'yes'
env:
BRANCH: ${{ github.event.inputs.branch }}
PRERELEASE: ${{ github.event.inputs.prerelease }}
GH_TOKEN: ${{ github.token }}
run: |
tox -e prepare-release-pr -- "$BRANCH" --major --prerelease="$PRERELEASE"
tox -e prepare-release-pr -- "$BRANCH" ${{ github.token }} --major --prerelease="$PRERELEASE"
Loading
Loading