forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into decimal-from-number
- Loading branch information
Showing
1,304 changed files
with
90,343 additions
and
62,454 deletions.
There are no files selected for viewing
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
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
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ body: | |
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
- "CPython main branch" | ||
validations: | ||
required: true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
|
||
name: Change detection | ||
name: Reusable change detection | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_call: | ||
|
@@ -126,13 +124,18 @@ jobs: | |
.github/workflows/reusable-docs.yml | ||
format: csv # works for paths with spaces | ||
- name: Check for docs changes | ||
# We only want to run this on PRs when related files are changed, | ||
# or when user triggers manual workflow run. | ||
if: >- | ||
github.event_name == 'pull_request' | ||
&& steps.changed-docs-files.outputs.added_modified_renamed != '' | ||
( | ||
github.event_name == 'pull_request' | ||
&& steps.changed-docs-files.outputs.added_modified_renamed != '' | ||
) || github.event_name == 'workflow_dispatch' | ||
id: docs-changes | ||
run: | | ||
echo "run-docs=true" >> "${GITHUB_OUTPUT}" | ||
- name: Get a list of the MSI installer-related files | ||
if: github.event_name == 'pull_request' | ||
id: changed-win-msi-files | ||
uses: Ana06/[email protected] | ||
with: | ||
|
@@ -141,10 +144,13 @@ jobs: | |
.github/workflows/reusable-windows-msi.yml | ||
format: csv # works for paths with spaces | ||
- name: Check for changes in MSI installer-related files | ||
# We only want to run this on PRs when related files are changed, | ||
# or when user triggers manual workflow run. | ||
if: >- | ||
steps.changed-win-msi-files.outputs.added_modified_renamed != '' | ||
( | ||
github.event_name == 'pull_request' | ||
&& steps.changed-win-msi-files.outputs.added_modified_renamed != '' | ||
) || github.event_name == 'workflow_dispatch' | ||
id: win-msi-changes | ||
run: | | ||
echo "run-win-msi=true" >> "${GITHUB_OUTPUT}" | ||
... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Reusable macOS | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
|
@@ -35,7 +37,7 @@ jobs: | |
path: config.cache | ||
key: ${{ github.job }}-${{ inputs.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }} | ||
- name: Install Homebrew dependencies | ||
run: brew install pkg-config [email protected] xz gdbm tcl-tk | ||
run: brew install pkg-config [email protected] xz gdbm tcl-tk make | ||
- name: Configure CPython | ||
run: | | ||
GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ | ||
|
@@ -44,14 +46,27 @@ jobs: | |
--config-cache \ | ||
--with-pydebug \ | ||
--enable-slower-safety \ | ||
--enable-safety \ | ||
${{ inputs.free-threading && '--disable-gil' || '' }} \ | ||
--prefix=/opt/python-dev \ | ||
--with-openssl="$(brew --prefix [email protected])" | ||
- name: Build CPython | ||
run: set -o pipefail; make -j8 2>&1 | tee compiler_output.txt | ||
if : ${{ inputs.free-threading || inputs.os != 'macos-13' }} | ||
run: gmake -j8 | ||
- name: Build CPython for compiler warning check | ||
if : ${{ !inputs.free-threading && inputs.os == 'macos-13' }} | ||
run: set -o pipefail; gmake -j8 --output-sync 2>&1 | tee compiler_output_macos.txt | ||
- name: Display build info | ||
run: make pythoninfo | ||
- name: Check compiler warnings | ||
run: python3 Tools/build/check_warnings.py --compiler-output-file-path=compiler_output.txt --warning-ignore-file-path=Tools/build/.warningignore_macos --compiler-output-type=clang | ||
if : ${{ !inputs.free-threading && inputs.os == 'macos-13' }} | ||
run: >- | ||
python3 Tools/build/check_warnings.py | ||
--compiler-output-file-path=compiler_output_macos.txt | ||
--warning-ignore-file-path=Tools/build/.warningignore_macos | ||
--compiler-output-type=clang | ||
--fail-on-regression | ||
--fail-on-improvement | ||
--path-prefix="./" | ||
- name: Tests | ||
run: make test |
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,3 +1,5 @@ | ||
name: Reusable Thread Sanitizer | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
|
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
Oops, something went wrong.