summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPaul Moore <p.f.moore@gmail.com>2022-07-12 10:28:34 +0100
committerPaul Moore <p.f.moore@gmail.com>2022-07-12 10:37:33 +0100
commit81e813ac7948e9b3af7e0f3b3555405652dc7963 (patch)
tree0cbf29dd8c00b53e3c536fa20ab8c1d9a5474bc0 /.github
parentf7240d8691ee99cab6a77da13a7e43c717f6eab3 (diff)
downloadpip-81e813ac7948e9b3af7e0f3b3555405652dc7963.tar.gz
Add testing with pip built as a zipapp to the CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e467b3e50..439b6fabb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -219,6 +219,35 @@ jobs:
env:
TEMP: "R:\\Temp"
+ tests-zipapp:
+ name: tests / zipapp
+ runs-on: ubuntu-latest
+
+ needs: [pre-commit, 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 'virtualenv<20' 'setuptools != 60.6.0'
+
+ # Main check
+ - name: Run integration tests
+ run: >-
+ nox -s test-3.10 --
+ -m integration
+ --verbose --numprocesses auto --showlocals
+ --durations=5
+ --use-zipapp
+
# TODO: Remove this when we add Python 3.11 to CI.
tests-importlib-metadata:
name: tests for importlib.metadata backend