From f05595eeaa5945e8eced52d3b014ff2100107196 Mon Sep 17 00:00:00 2001 From: Etienne Wodey Date: Fri, 23 Feb 2024 17:05:31 +0100 Subject: [PATCH] workflows/package-tests: activate venv when necessary --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b4917f..43d7891 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -51,9 +51,11 @@ jobs: run: | pip install uv uv venv + # FIXME: https://github.com/astral-sh/uv/issues/1386 echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV - name: Check Python version run: | + # FIXME: https://github.com/astral-sh/uv/issues/1910 source $VIRTUAL_ENV/bin/activate python --version - name: Restore packages @@ -74,6 +76,8 @@ jobs: sparse-checkout-cone-mode: false - name: Run examples run: | + # FIXME: https://github.com/astral-sh/uv/issues/1910 + source $VIRTUAL_ENV/bin/activate ./examples/run_all.sh # tests: # name: tests-py${{ matrix.python-version }}-qiskit${{ matrix.qiskit-version }}-resolve-${{ matrix.resolution-strategy }}