diff options
author | Tzu-ping Chung <uranusjr@gmail.com> | 2022-10-29 00:37:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 11:37:04 -0500 |
commit | d6e333fb636424d7dca15f4e8aa61cdaab9cdd31 (patch) | |
tree | dfa9df6e1432b1f09187b1060f65832d5f33ac0c /.github | |
parent | 8f34d86a1e787caeba0805669a73810cd6d8b448 (diff) | |
download | pip-d6e333fb636424d7dca15f4e8aa61cdaab9cdd31.tar.gz |
Add 3.11 to CI (#11550)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 82 | ||||
-rw-r--r-- | .github/workflows/news-file.yml | 2 |
2 files changed, 28 insertions, 56 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9cfb7b8e..7b48d9443 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.x" - run: pip install nox - run: nox -s docs @@ -60,8 +62,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.x" - name: Set up git credentials run: | git config --global user.email "pypa-dev@googlegroups.com" @@ -82,8 +86,10 @@ jobs: github.event_name != 'pull_request' steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.x" - run: pip install nox - run: nox -s vendoring @@ -103,14 +109,15 @@ jobs: matrix: os: [Ubuntu, MacOS] python: - - 3.7 - - 3.8 - - 3.9 + - "3.7" + - "3.8" + - "3.9" - "3.10" + - "3.11" steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} @@ -151,16 +158,17 @@ jobs: matrix: os: [Windows] python: - - 3.7 + - "3.7" # Commented out, since Windows tests are expensively slow. - # - 3.8 - # - 3.9 - - "3.10" + # - "3.8" + # - "3.9" + # - "3.10" + - "3.11" group: [1, 2] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} @@ -221,8 +229,8 @@ jobs: github.event_name != 'pull_request' steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: "3.10" @@ -240,41 +248,6 @@ jobs: --durations=5 --use-zipapp - # TODO: Remove this when we add Python 3.11 to CI. - tests-importlib-metadata: - name: tests for importlib.metadata backend - runs-on: ubuntu-latest - env: - _PIP_USE_IMPORTLIB_METADATA: 'true' - - needs: [packaging, determine-changes] - if: >- - needs.determine-changes.outputs.tests == 'true' || - github.event_name != 'pull_request' - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: '3.10' - - - name: Install Ubuntu dependencies - run: sudo apt-get install bzr - - - run: pip install nox - - - name: Run unit tests - run: >- - nox -s test-3.10 -- - -m unit - --verbose --numprocesses auto --showlocals - - name: Run integration tests - run: >- - nox -s test-3.10 -- - -m integration - --verbose --numprocesses auto --showlocals - --durations=5 - check: # This job does nothing and is only used for the branch protection if: always() @@ -285,7 +258,6 @@ jobs: - tests-unix - tests-windows - tests-zipapp - - tests-importlib-metadata - vendoring runs-on: ubuntu-latest diff --git a/.github/workflows/news-file.yml b/.github/workflows/news-file.yml index da7119a55..371e12fd7 100644 --- a/.github/workflows/news-file.yml +++ b/.github/workflows/news-file.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: # `towncrier check` runs `git diff --name-only origin/main...`, which # needs a non-shallow clone. |