-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-110793: Add CI job that runs tests with an installed build #152664
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
StanFromIreland
merged 10 commits into
python:main
from
StanFromIreland:Reusable-Ubuntu-(Installed)
Aug 10, 2026
+52
−0
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9a73e26
gh-110793: Add CI job that runs tests with an installed build
StanFromIreland caf7b26
Pass OS like we do for `reusable-ubunut`
StanFromIreland 4d5bbd0
Run `pythoninfo` on installed, and run test w/ `python${LDVERSION}`
StanFromIreland 86e64ee
Merge branch 'main' into Reusable-Ubuntu-(Installed)
StanFromIreland 7961ebb
Merge branch 'main' into Reusable-Ubuntu-(Installed)
StanFromIreland e62fc5a
Bump Ubuntu version
StanFromIreland a0cb79c
Sviatoslav's review
StanFromIreland d558219
Drop `--with-pydebug`
StanFromIreland 3092b9c
Hugo's review
StanFromIreland b3cc2c7
Little reordering for consistency
StanFromIreland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,44 @@ | ||
| name: Reusable Ubuntu (installed) | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| FORCE_COLOR: 1 | ||
|
|
||
| jobs: | ||
| build-install-test: | ||
| name: build, install and test | ||
| runs-on: ubuntu-26.04-arm | ||
| timeout-minutes: 60 | ||
| env: | ||
| PYTHONSTRICTEXTENSIONBUILD: 1 | ||
| steps: | ||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Register gcc problem matcher | ||
| run: echo "::add-matcher::.github/problem-matchers/gcc.json" | ||
| - name: Set install dir | ||
| run: | ||
| echo "INSTALL_DIR=$(realpath "${GITHUB_WORKSPACE}/../installed-python")" >> "$GITHUB_ENV" | ||
| - name: Install dependencies | ||
| run: sudo ./.github/workflows/posix-deps-apt.sh | ||
| - name: Configure CPython | ||
| run: ./configure --config-cache --prefix="$INSTALL_DIR" | ||
| - name: Build CPython | ||
| run: make -j | ||
| - name: Install CPython | ||
| run: make install | ||
| - name: Set installed interpreter | ||
| run: | | ||
| ldversion=$(./python -c 'import sysconfig; print(sysconfig.get_config_var("LDVERSION"))') | ||
| echo "INSTALLED_PYTHON=${INSTALL_DIR}/bin/python${ldversion}" >> "$GITHUB_ENV" | ||
| - name: Display build info | ||
| run: | | ||
| "$INSTALLED_PYTHON" -m test.pythoninfo | ||
| - name: Test the installed Python | ||
| run: xvfb-run "$INSTALLED_PYTHON" -m test --fast-ci --timeout=900 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.