-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Document CI #7247
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
Document CI #7247
Changes from all commits
Commits
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
.. note:: | ||
This section of the documentation is currently being written. pip | ||
developers welcome your help to complete this documentation. If you're | ||
interested in helping out, please let us know in the `tracking issue`_. | ||
|
||
.. _`tracking issue`: https://github.com/pypa/pip/issues/7279 | ||
|
||
********************** | ||
Continuous Integration | ||
********************** | ||
|
||
Supported interpreters | ||
====================== | ||
|
||
pip support a variety of Python interpreters: | ||
|
||
- CPython 2.7 | ||
- CPython 3.5 | ||
- CPython 3.6 | ||
- CPython 3.7 | ||
- CPython 3.8 | ||
- Latest PyPy | ||
- Latest PyPy3 | ||
|
||
on different operating systems: | ||
|
||
- Linux | ||
- Windows | ||
- MacOS | ||
|
||
and on different architectures: | ||
|
||
- x64 | ||
- x86 | ||
|
||
so 42 hypothetical interpreters. | ||
|
||
|
||
Checks | ||
====== | ||
|
||
``pip`` CI runs different kind of tests: | ||
|
||
- lint (defined in ``.pre-commit-config.yaml``) | ||
- docs | ||
- vendoring (is the ``src/_internal/_vendor`` directory cleanly vendored) | ||
- unit tests (present in ``tests/unit``) | ||
- "integration" tests (mostly present in ``tests/functional``) | ||
- package (test the packaging steps) | ||
|
||
Since lint, docs, vendoring and package tests only need to run on a pip | ||
developer/contributor machine, they only need to be tested on the x64 variant | ||
of the 3 different operating systems, and when an interpreter needs to be | ||
specified it's ok to require the latest CPython interpreter. | ||
|
||
So only unit tests and integration tests would need to be run with the different | ||
interpreters. | ||
|
||
Services | ||
======== | ||
|
||
pip test suite and checks are distributed on four different platforms that | ||
provides free executors for open source packages: | ||
|
||
- `Travis CI`_ (Used for Linux) | ||
- `Appveyor CI`_ (Windows only) | ||
- `Azure DevOps CI`_ (Linux, MacOS & Windows tests) | ||
- `GitHub Actions`_ (Linux, MacOS & Windows tests) | ||
|
||
.. _`Travis CI`: https://travis-ci.org/ | ||
.. _`Appveyor CI`: https://www.appveyor.com/ | ||
.. _`Azure DevOps CI`: https://dev.azure.com/ | ||
.. _`GitHub Actions`: https://github.com/features/actions | ||
|
||
|
||
Current run tests | ||
================= | ||
|
||
Developer tasks | ||
--------------- | ||
|
||
======== =============== ================ =========== ============ | ||
OS docs lint vendoring packages | ||
======== =============== ================ =========== ============ | ||
Linux Travis, Github Travis, Github Travis Azure | ||
Windows Azure | ||
MacOS Azure | ||
======== =============== ================ =========== ============ | ||
|
||
Actual testing | ||
-------------- | ||
|
||
+------------------------------+---------------+-----------------+ | ||
| **interpreter** | **unit** | **integration** | | ||
+-----------+----------+-------+---------------+-----------------+ | ||
| | | CP2.7 | Azure | Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.5 | Azure | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.6 | Azure | | | ||
| | +-------+---------------+-----------------+ | ||
| | x86 | CP3.7 | Azure | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.8 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy3 | | | | ||
| Windows +----------+-------+---------------+-----------------+ | ||
| | | CP2.7 | Appveyor | Appveyor | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.5 | Azure | Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.6 | Appveyor | Appveyor | | ||
| | +-------+---------------+-----------------+ | ||
| | x64 | CP3.7 | Azure | Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.8 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy3 | | | | ||
+-----------+----------+-------+---------------+-----------------+ | ||
| | | CP2.7 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.5 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.6 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | x86 | CP3.7 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.8 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy3 | | | | ||
| Linux +----------+-------+---------------+-----------------+ | ||
| | | CP2.7 | Travis,Azure | Travis,Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.5 | Travis,Azure | Travis,Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.6 | Travis,Azure | Travis,Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | x64 | CP3.7 | Travis,Azure | Travis,Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.8 | Travis | Travis | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy | Travis | Travis | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy3 | Travis | Travis | | ||
+-----------+----------+-------+---------------+-----------------+ | ||
| | | CP2.7 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.5 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.6 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | x86 | CP3.7 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.8 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy3 | | | | ||
| MacOS +----------+-------+---------------+-----------------+ | ||
| | | CP2.7 | Azure | Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.5 | Azure | Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.6 | Azure | Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | x64 | CP3.7 | Azure | Azure | | ||
| | +-------+---------------+-----------------+ | ||
| | | CP3.8 | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy | | | | ||
| | +-------+---------------+-----------------+ | ||
| | | PyPy3 | | | | ||
+-----------+----------+-------+---------------+-----------------+ |
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
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.