Skip to content

Commit bea2e23

Browse files
committed
try using virtual environment
1 parent d7490fc commit bea2e23

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pr_qc.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@ jobs:
1919
python-version: 3.11
2020
- name: Run qa
2121
run: |
22+
python_loc="$(which python || true)"
23+
echo "python location: $python_loc"
24+
echo "python --version $(python --version || true)"
25+
python -m venv ./.venv
26+
source ./.venv/bin/activate
2227
echo "Running uv sync --all-extras --no-cache"
2328
uv sync --all-extras --no-cache
2429
echo "uv sync complete!"
2530
echo "Checking for ruff before running qa..."
26-
ruff_loc="$(which ruff)"
31+
ruff_loc="$(which ruff || true)"
2732
echo "ruff located at $ruff_loc"
28-
ruff_installation="$(pip show ruff)"
33+
ruff_installation="$(pip show ruff || true)"
2934
echo "ruff installation: "
3035
echo "$ruff_installation"
3136
make qa

0 commit comments

Comments
 (0)