Skip to content

Commit 9b10ae7

Browse files
Merge branch 'main' into Improvement-catch-duplicate-values-when-determining-param-indices-in-metafunc-parametrize
2 parents da499bb + 047ba83 commit 9b10ae7

File tree

147 files changed

+4893
-1406
lines changed

Some content is hidden

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

147 files changed

+4893
-1406
lines changed

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
pull-requests: write
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
2828
persist-credentials: true

.github/workflows/deploy.yml

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,60 @@
11
name: deploy
22

33
on:
4-
push:
5-
tags:
6-
# These tags are protected, see:
7-
# https://github.com/pytest-dev/pytest/settings/tag_protection
8-
- "[0-9]+.[0-9]+.[0-9]+"
9-
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Release version'
8+
required: true
9+
default: '1.2.3'
1010

1111

1212
# Set permissions at the job level.
1313
permissions: {}
1414

1515
jobs:
16-
build:
16+
package:
1717
runs-on: ubuntu-latest
18+
env:
19+
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}
1820
timeout-minutes: 10
21+
1922
steps:
20-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2124
with:
2225
fetch-depth: 0
2326
persist-credentials: false
27+
2428
- name: Build and Check Package
25-
uses: hynek/[email protected]
29+
uses: hynek/[email protected].4
2630

2731
deploy:
2832
if: github.repository == 'pytest-dev/pytest'
29-
needs: [build]
33+
needs: [package]
3034
runs-on: ubuntu-latest
35+
environment: deploy
3136
timeout-minutes: 30
3237
permissions:
3338
id-token: write
39+
contents: write
3440
steps:
41+
- uses: actions/checkout@v4
42+
3543
- name: Download Package
3644
uses: actions/download-artifact@v3
3745
with:
3846
name: Packages
3947
path: dist
48+
4049
- name: Publish package to PyPI
41-
uses: pypa/[email protected]
50+
uses: pypa/[email protected]
51+
52+
- name: Push tag
53+
run: |
54+
git config user.name "pytest bot"
55+
git config user.email "[email protected]"
56+
git tag --annotate --message=v${{ github.event.inputs.version }} ${{ github.event.inputs.version }} ${{ github.sha }}
57+
git push origin ${{ github.event.inputs.version }}
4258
4359
release-notes:
4460

@@ -51,16 +67,16 @@ jobs:
5167
permissions:
5268
contents: write
5369
steps:
54-
- uses: actions/checkout@v3
70+
- uses: actions/checkout@v4
5571
with:
5672
fetch-depth: 0
5773
persist-credentials: false
74+
5875
- name: Set up Python
59-
uses: actions/setup-python@v4
76+
uses: actions/setup-python@v5
6077
with:
6178
python-version: "3.11"
6279

63-
6480
- name: Install tox
6581
run: |
6682
python -m pip install --upgrade pip

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

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

2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

3434
- name: Set up Python
35-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v5
3636
with:
3737
python-version: "3.8"
3838

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
permissions:
1111
issues: write
1212
steps:
13-
- uses: actions/stale@v8
13+
- uses: actions/stale@v9
1414
with:
1515
debug-only: false
1616
days-before-issue-stale: 14

.github/workflows/test.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,19 @@ concurrency:
2727
permissions: {}
2828

2929
jobs:
30+
package:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
persist-credentials: false
37+
- name: Build and Check Package
38+
uses: hynek/[email protected]
39+
3040
build:
41+
needs: [package]
42+
3143
runs-on: ${{ matrix.os }}
3244
timeout-minutes: 45
3345
permissions:
@@ -58,7 +70,6 @@ jobs:
5870
"macos-py310",
5971
"macos-py312",
6072

61-
"docs",
6273
"doctesting",
6374
"plugins",
6475
]
@@ -145,28 +156,30 @@ jobs:
145156
tox_env: "py312-xdist"
146157

147158
- name: "plugins"
148-
python: "3.9"
159+
python: "3.12"
149160
os: ubuntu-latest
150161
tox_env: "plugins"
151162

152-
- name: "docs"
153-
python: "3.8"
154-
os: ubuntu-latest
155-
tox_env: "docs"
156163
- name: "doctesting"
157164
python: "3.8"
158165
os: ubuntu-latest
159166
tox_env: "doctesting"
160167
use_coverage: true
161168

162169
steps:
163-
- uses: actions/checkout@v3
170+
- uses: actions/checkout@v4
164171
with:
165172
fetch-depth: 0
166173
persist-credentials: false
167174

175+
- name: Download Package
176+
uses: actions/download-artifact@v3
177+
with:
178+
name: Packages
179+
path: dist
180+
168181
- name: Set up Python ${{ matrix.python }}
169-
uses: actions/setup-python@v4
182+
uses: actions/setup-python@v5
170183
with:
171184
python-version: ${{ matrix.python }}
172185
check-latest: ${{ endsWith(matrix.python, '-dev') }}
@@ -178,11 +191,13 @@ jobs:
178191
179192
- name: Test without coverage
180193
if: "! matrix.use_coverage"
181-
run: "tox -e ${{ matrix.tox_env }}"
194+
shell: bash
195+
run: tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`
182196

183197
- name: Test with coverage
184198
if: "matrix.use_coverage"
185-
run: "tox -e ${{ matrix.tox_env }}-coverage"
199+
shell: bash
200+
run: tox run -e ${{ matrix.tox_env }}-coverage --installpkg `find dist/*.tar.gz`
186201

187202
- name: Generate coverage report
188203
if: "matrix.use_coverage"
@@ -196,10 +211,3 @@ jobs:
196211
fail_ci_if_error: true
197212
files: ./coverage.xml
198213
verbose: true
199-
200-
check-package:
201-
runs-on: ubuntu-latest
202-
steps:
203-
- uses: actions/checkout@v3
204-
- name: Build and Check Package
205-
uses: hynek/[email protected]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626

2727
- name: Setup Python
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
30-
python-version: "3.8"
30+
python-version: "3.11"
3131
cache: pip
3232
- name: requests-cache
3333
uses: actions/cache@v3

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.7.0
3+
rev: 23.11.0
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
77
- repo: https://github.com/asottile/blacken-docs
8-
rev: 1.15.0
8+
rev: 1.16.0
99
hooks:
1010
- id: blacken-docs
1111
additional_dependencies: [black==23.7.0]
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v4.4.0
13+
rev: v4.5.0
1414
hooks:
1515
- id: trailing-whitespace
1616
- id: end-of-file-fixer
@@ -21,7 +21,7 @@ repos:
2121
exclude: _pytest/(debugging|hookspec).py
2222
language_version: python3
2323
- repo: https://github.com/PyCQA/autoflake
24-
rev: v2.2.0
24+
rev: v2.2.1
2525
hooks:
2626
- id: autoflake
2727
name: autoflake
@@ -37,17 +37,17 @@ repos:
3737
- flake8-typing-imports==1.12.0
3838
- flake8-docstrings==1.5.0
3939
- repo: https://github.com/asottile/reorder-python-imports
40-
rev: v3.10.0
40+
rev: v3.12.0
4141
hooks:
4242
- id: reorder-python-imports
4343
args: ['--application-directories=.:src', --py38-plus]
4444
- repo: https://github.com/asottile/pyupgrade
45-
rev: v3.10.1
45+
rev: v3.15.0
4646
hooks:
4747
- id: pyupgrade
4848
args: [--py38-plus]
4949
- repo: https://github.com/asottile/setup-cfg-fmt
50-
rev: v2.4.0
50+
rev: v2.5.0
5151
hooks:
5252
- id: setup-cfg-fmt
5353
args: ["--max-py-version=3.12", "--include-version-classifiers"]
@@ -56,7 +56,7 @@ repos:
5656
hooks:
5757
- id: python-use-type-annotations
5858
- repo: https://github.com/pre-commit/mirrors-mypy
59-
rev: v1.4.1
59+
rev: v1.7.1
6060
hooks:
6161
- id: mypy
6262
files: ^(src/|testing/)

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ python:
99
path: .
1010
- requirements: doc/en/requirements.txt
1111

12+
sphinx:
13+
configuration: doc/en/conf.py
14+
fail_on_warning: true
15+
1216
build:
1317
os: ubuntu-20.04
1418
tools:

0 commit comments

Comments
 (0)