Skip to content

Commit 462b216

Browse files
author
benoit-cty
committed
Try to fix uv run
1 parent 5aca5f7 commit 462b216

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/package-validation-reusable.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ jobs:
5858
- name: Sync dev dependencies from lockfile and install wheel
5959
run: |
6060
uv sync --python ${{ env.MAIN_PYTHON_VERSION }} --frozen --no-install-project --group dev
61-
uv pip install dist/*.whl
61+
uv pip install --python .venv/bin/python dist/*.whl
6262
- name: Test package integrity
6363
run: |
64-
uv run --python ${{ env.MAIN_PYTHON_VERSION }} python -m pytest tests/test_package_integrity.py -v
65-
CODECARBON_ALLOW_MULTIPLE_RUNS=True uv run --python ${{ env.MAIN_PYTHON_VERSION }} python -m pytest \
64+
.venv/bin/python -m pytest tests/test_package_integrity.py -v
65+
CODECARBON_ALLOW_MULTIPLE_RUNS=True .venv/bin/python -m pytest \
6666
--ignore=tests/test_viz_data.py \
6767
-vv -m 'not integ_test' tests/
6868
- name: Test CLI functionality
6969
run: |
70-
uv run --python ${{ env.MAIN_PYTHON_VERSION }} codecarbon --help
71-
uv run --python ${{ env.MAIN_PYTHON_VERSION }} python -c "from codecarbon import EmissionsTracker; print('Package import successful')"
70+
.venv/bin/codecarbon --help
71+
.venv/bin/python -c "from codecarbon import EmissionsTracker; print('Package import successful')"

0 commit comments

Comments
 (0)