From 026a279b6fb6444010b1b1fb20c16ad178678e7a Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Thu, 26 Feb 2026 16:49:37 +0100 Subject: [PATCH] Pin virtualenv<21 in tests because of breaking change incompatible with hatch --- .github/workflows/tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0bed75b7..3e823876 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,6 +38,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - name: Pin virtualenv to pre-breaking major version + run: pipx inject --force hatch "virtualenv<21" - name: Run Tests run: hatch run cov:test - uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1 @@ -60,6 +62,8 @@ jobs: uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 with: dependency_type: minimum + - name: Pin virtualenv to pre-breaking major version + run: pipx inject --force hatch "virtualenv<21" - name: Run the unit tests run: | hatch run test:nowarn || hatch -v run test:nowarn --lf @@ -70,6 +74,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - name: Pin virtualenv to pre-breaking major version + run: pipx inject --force hatch "virtualenv<21" - name: Run Linters run: | hatch run typing:test @@ -83,6 +89,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - name: Pin virtualenv to pre-breaking major version + run: pipx inject --force hatch "virtualenv<21" - name: Build the docs run: hatch run docs:build @@ -97,6 +105,8 @@ jobs: uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 with: dependency_type: pre + - name: Pin virtualenv to pre-breaking major version + run: pipx inject --force hatch "virtualenv<21" - name: Run the tests run: | hatch run test:nowarn || hatch run test:nowarn --lf @@ -133,6 +143,8 @@ jobs: uses: actions/checkout@v4 - name: Base Setup uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - name: Pin virtualenv to pre-breaking major version + run: pipx inject --force hatch "virtualenv<21" - name: Install Dependencies run: | pip install -e .