Skip to content

Remove the actions/setup-python action for self-hosted Linux runners. #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions PROVISIONING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ sudo apt install python3 build-essential ccache gdb lcov pkg-config \
lzma lzma-dev tk-dev uuid-dev zlib1g-dev linux-perf
```

The self-hosted runner needs to have `python` be Python 3.9 or later.

### Enable ccache

```bash session
Expand Down
7 changes: 0 additions & 7 deletions bench_runner/templates/_benchmark.src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ jobs:
run: |
git gc
- uses: fregante/setup-git-user@v2
- name: Setup system Python
if: ${{ runner.arch == 'X64' }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Checkout CPython
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -324,8 +319,6 @@ jobs:
./configure --enable-option-checking=fatal ${{ inputs.pgo == true && '--enable-optimizations --with-lto=full' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} ${{ inputs.clang == true && '--with-tail-call-interp' || '' }} ${PYTHON_CONFIGURE_FLAGS:-}
make -j4
./python.exe -VV
# On macos ARM64, actions/setup-python isn't available, so we rely on a
# pre-installed homebrew one, used through a venv
- name: Install pyperformance
if: ${{ steps.should_run.outputs.should_run != 'false' }}
run: |
Expand Down