-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11377 from pytest-dev/release-7.4.1
Prepare release 7.4.1
- Loading branch information
Showing
14 changed files
with
108 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,59 @@ | ||
name: deploy | ||
|
||
on: | ||
push: | ||
tags: | ||
# These tags are protected, see: | ||
# https://github.com/pytest-dev/pytest/settings/tag_protection | ||
- "[0-9]+.[0-9]+.[0-9]+" | ||
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+" | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release version' | ||
required: true | ||
default: '1.2.3' | ||
|
||
|
||
# Set permissions at the job level. | ||
permissions: {} | ||
|
||
jobs: | ||
build: | ||
package: | ||
runs-on: ubuntu-latest | ||
env: | ||
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }} | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Build and Check Package | ||
uses: hynek/[email protected] | ||
|
||
deploy: | ||
if: github.repository == 'pytest-dev/pytest' | ||
needs: [build] | ||
needs: [package] | ||
runs-on: ubuntu-latest | ||
environment: deploy | ||
timeout-minutes: 30 | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Download Package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Packages | ||
path: dist | ||
|
||
- name: Publish package to PyPI | ||
uses: pypa/[email protected] | ||
|
||
- name: Push tag | ||
run: | | ||
git config user.name "pytest bot" | ||
git config user.email "[email protected]" | ||
git tag --annotate --message=v${{ github.event.inputs.version }} v${{ github.event.inputs.version }} ${{ github.sha }} | ||
git push origin v${{ github.event.inputs.version }} | ||
release-notes: | ||
|
||
# todo: generate the content in the build job | ||
|
@@ -55,11 +69,11 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.7" | ||
|
||
python-version: "3.10" | ||
|
||
- name: Install tox | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,19 @@ concurrency: | |
permissions: {} | ||
|
||
jobs: | ||
package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Build and Check Package | ||
uses: hynek/[email protected] | ||
|
||
build: | ||
needs: [package] | ||
|
||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 45 | ||
permissions: | ||
|
@@ -60,7 +72,6 @@ jobs: | |
"macos-py310", | ||
"macos-py312", | ||
|
||
"docs", | ||
"doctesting", | ||
"plugins", | ||
] | ||
|
@@ -159,10 +170,6 @@ jobs: | |
os: ubuntu-latest | ||
tox_env: "plugins" | ||
|
||
- name: "docs" | ||
python: "3.7" | ||
os: ubuntu-latest | ||
tox_env: "docs" | ||
- name: "doctesting" | ||
python: "3.7" | ||
os: ubuntu-latest | ||
|
@@ -175,6 +182,12 @@ jobs: | |
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Download Package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Packages | ||
path: dist | ||
|
||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
|
@@ -188,11 +201,13 @@ jobs: | |
- name: Test without coverage | ||
if: "! matrix.use_coverage" | ||
run: "tox -e ${{ matrix.tox_env }}" | ||
shell: bash | ||
run: tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz` | ||
|
||
- name: Test with coverage | ||
if: "matrix.use_coverage" | ||
run: "tox -e ${{ matrix.tox_env }}-coverage" | ||
shell: bash | ||
run: tox run -e ${{ matrix.tox_env }}-coverage --installpkg `find dist/*.tar.gz` | ||
|
||
- name: Generate coverage report | ||
if: "matrix.use_coverage" | ||
|
@@ -206,10 +221,3 @@ jobs: | |
fail_ci_if_error: true | ||
files: ./coverage.xml | ||
verbose: true | ||
|
||
check-package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build and Check Package | ||
uses: hynek/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Release announcements | |
:maxdepth: 2 | ||
|
||
|
||
release-7.4.1 | ||
release-7.4.0 | ||
release-7.3.2 | ||
release-7.3.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pytest-7.4.1 | ||
======================================= | ||
|
||
pytest 7.4.1 has just been released to PyPI. | ||
|
||
This is a bug-fix release, being a drop-in replacement. To upgrade:: | ||
|
||
pip install --upgrade pytest | ||
|
||
The full changelog is available at https://docs.pytest.org/en/stable/changelog.html. | ||
|
||
Thanks to all of the contributors to this release: | ||
|
||
* Bruno Oliveira | ||
* Florian Bruhin | ||
* Ran Benita | ||
|
||
|
||
Happy testing, | ||
The pytest Development Team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters