Skip to content

Commit ff14913

Browse files
alingseclaude
andcommitted
Use uv run for consistent command execution
Simplify CI by using 'uv run' instead of activating virtual environment. This keeps commands consistent with local development. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 48fb855 commit ff14913

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ jobs:
2121
curl -LsSf https://astral.sh/uv/install.sh | sh
2222
echo "$HOME/.local/bin" >> $GITHUB_PATH
2323
- name: Install dependencies
24-
run: |
25-
uv pip install --system -e ".[dev]"
24+
run: uv pip install -e ".[dev]"
2625
- name: Run ruff
27-
run: ruff check .
26+
run: uv run ruff check .
2827
- name: Run mypy
29-
run: mypy jsoncsv
28+
run: uv run mypy jsoncsv
3029

3130
test:
3231
name: Test (Python ${{ matrix.python-version }})
@@ -44,10 +43,9 @@ jobs:
4443
curl -LsSf https://astral.sh/uv/install.sh | sh
4544
echo "$HOME/.local/bin" >> $GITHUB_PATH
4645
- name: Install dependencies
47-
run: |
48-
uv pip install --system -e ".[dev]"
46+
run: uv pip install -e ".[dev]"
4947
- name: Run tests
50-
run: pytest --cov=jsoncsv --cov-report=xml
48+
run: uv run pytest --cov=jsoncsv --cov-report=xml
5149
- name: Upload coverage
5250
uses: codecov/codecov-action@v4
5351
with:
@@ -68,8 +66,7 @@ jobs:
6866
echo "$HOME/.local/bin" >> $GITHUB_PATH
6967
- name: Build package
7068
run: |
71-
uv pip install --system build
72-
uv pip install --system twine
73-
python -m build
69+
uv pip install build twine
70+
uv run python -m build
7471
- name: Check package
75-
run: twine check dist/*
72+
run: uv run twine check dist/*

0 commit comments

Comments
 (0)