Skip to content

Commit

Permalink
workflows/package-tests: activate venv when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
airwoodix committed Feb 23, 2024
1 parent fa47351 commit f05595e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit f05595e

Please sign in to comment.