diff --git a/.github/workflows/add-issue-header.yml b/.github/workflows/add-issue-header.yml index 3cbc23af578d10..9d10655b7fb17e 100644 --- a/.github/workflows/add-issue-header.yml +++ b/.github/workflows/add-issue-header.yml @@ -1,6 +1,8 @@ name: Add issue header # Automatically edits an issue's descriptions with a header, # one of: + + # # - Bug report # - Crash report diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83a668fc720a90..a88a2e71137231 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ on: - 'main' - '3.*' + permissions: contents: read diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index 52f7d0d2b3df95..f667d3c05037d7 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -72,10 +72,10 @@ jobs: include: - target: i686-pc-windows-msvc/msvc architecture: Win32 - runner: windows-2022 + runner: windows-latest - target: x86_64-pc-windows-msvc/msvc architecture: x64 - runner: windows-2022 + runner: windows-latest - target: aarch64-pc-windows-msvc/msvc architecture: ARM64 runner: windows-11-arm @@ -106,15 +106,16 @@ jobs: ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} ./PCbuild/rt.bat ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} -q --multiprocess 0 --timeout 4500 --verbose2 --verbose3 + - name: macOS # The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966. # This is a bug in the macOS runner image where the pre-installed Python is installed in the same # directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes # the symlink to the pre-installed Python so that the Homebrew Python is used instead. - - name: macOS + # also see: rosetta https://github.com/numpy/numpy/pull/29756/files if: runner.os == 'macOS' run: | brew update - find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + find /usr/local/bin -lname "*/Library/Frameworks/Python.framework/*" -delete brew install llvm@${{ matrix.llvm }} export SDKROOT="$(xcrun --show-sdk-path)" # Set MACOSX_DEPLOYMENT_TARGET and -Werror=unguarded-availability to @@ -122,7 +123,7 @@ jobs: export CFLAGS_JIT='-Werror=unguarded-availability' export MACOSX_DEPLOYMENT_TARGET=10.15 ./configure --enable-experimental-jit --enable-universalsdk --with-universal-archs=universal2 ${{ matrix.debug && '--with-pydebug' || '' }} - make all --jobs 4 + arch -x86_64 make all --jobs 4 ./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3 - name: Linux diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d74ce8fcc256dc..142ad939ca2c1e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,7 @@ name: Lint on: [push, pull_request, workflow_dispatch] + permissions: contents: read diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 5d5d77f29f6eb1..8bf9fb206935b4 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -6,6 +6,7 @@ on: branches: - main pull_request: + paths: - ".github/workflows/mypy.yml" - "Lib/_colorize.py" diff --git a/.github/workflows/new-bugs-announce-notifier.yml b/.github/workflows/new-bugs-announce-notifier.yml index 9f1a8a824e5f19..4652fbe5dc85b4 100644 --- a/.github/workflows/new-bugs-announce-notifier.yml +++ b/.github/workflows/new-bugs-announce-notifier.yml @@ -1,7 +1,8 @@ name: new-bugs-announce notifier on: - issues: + +issues: types: - opened diff --git a/.github/workflows/project-updater.yml b/.github/workflows/project-updater.yml index 1d9d637ec848a6..066c895ba088c2 100644 --- a/.github/workflows/project-updater.yml +++ b/.github/workflows/project-updater.yml @@ -1,7 +1,8 @@ name: Update GH projects on: - issues: + +issues: types: - opened - labeled diff --git a/.github/workflows/require-pr-label.yml b/.github/workflows/require-pr-label.yml index 7e534c58c798d1..41d13a7b4fd233 100644 --- a/.github/workflows/require-pr-label.yml +++ b/.github/workflows/require-pr-label.yml @@ -1,7 +1,8 @@ name: Check labels on: - pull_request: + +pull_request: types: [opened, reopened, labeled, unlabeled, synchronize] jobs: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index febb2dd823a8fe..b049cdf535b567 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,7 +1,8 @@ name: Mark stale pull requests on: - schedule: + +schedule: - cron: "0 */6 * * *" jobs: diff --git a/.github/workflows/tail-call.yml b/.github/workflows/tail-call.yml index d4a84223b7b8a5..de4239a3db6285 100644 --- a/.github/workflows/tail-call.yml +++ b/.github/workflows/tail-call.yml @@ -1,7 +1,8 @@ name: Tail calling interpreter on: pull_request: - paths: + + paths: - '.github/workflows/tail-call.yml' - 'Python/bytecodes.c' - 'Python/ceval.c' diff --git a/.github/workflows/verify-ensurepip-wheels.yml b/.github/workflows/verify-ensurepip-wheels.yml index 463e7bf3355cc3..eda242b4f2d248 100644 --- a/.github/workflows/verify-ensurepip-wheels.yml +++ b/.github/workflows/verify-ensurepip-wheels.yml @@ -1,7 +1,8 @@ name: Verify bundled wheels on: - workflow_dispatch: + +workflow_dispatch: push: paths: - 'Lib/ensurepip/_bundled/**'