summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTzu-ping Chung <uranusjr@gmail.com>2021-12-05 08:36:04 +0800
committerTzu-ping Chung <uranusjr@gmail.com>2022-04-12 03:26:12 +0800
commita9cf547dd1bc549b6a8f5b531d5a7adbee44c563 (patch)
tree687f0f1d39df4fd00405d04d190c02d8913d3da3 /.github
parent60a7ad3a276d568d056dafc38e95e0d5f6ff2c7c (diff)
downloadpip-a9cf547dd1bc549b6a8f5b531d5a7adbee44c563.tar.gz
Add workflow to run tests against the new backend
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 85b575c3e..c98504be7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -218,3 +218,39 @@ jobs:
--verbose --numprocesses auto --showlocals
env:
TEMP: "R:\\Temp"
+
+ tests-importlib-metadata:
+ name: tests for importlib.metadata backend
+ runs-on: ubuntu-latest
+ env:
+ _PIP_METADATA_BACKEND_IMPORTLIB: '1'
+
+ 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
+ if: matrix.os == 'Ubuntu'
+ run: sudo apt-get install bzr
+
+ - run: pip install nox 'virtualenv<20'
+
+ # Main check
+ - 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