Skip to content

Commit 9190436

Browse files
kenibrewerclaude
andcommitted
🐛 fix: update test workflow to use uv run for Python commands
- Replace uv pip install with uv sync for proper dependency management - Use uv run for all pytest and python commands in CI workflow - Ensures consistent behavior with local development environment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent d6bd0e4 commit 9190436

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/test-approval-automation.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030

3131
- name: Install dependencies
3232
working-directory: .github/workflows/lib
33-
run: uv pip install .[test] --system
33+
run: uv sync
3434

3535
- name: Run tests
3636
working-directory: .github/workflows/lib
37-
run: pytest tests/ -v
37+
run: uv run pytest tests/ -v
3838

3939
- name: Run tests with coverage
4040
working-directory: .github/workflows/lib
41-
run: pytest tests/ --cov=. --cov-report=json-summary --cov-report=lcov --cov-report=html
41+
run: uv run pytest tests/ --cov=. --cov-report=json-summary --cov-report=lcov --cov-report=html
4242

4343
- name: Upload coverage reports
4444
uses: codecov/codecov-action@v4
@@ -55,7 +55,7 @@ jobs:
5555
env:
5656
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
GITHUB_CONTEXT: ${{ toJson(github) }}
58-
run: python tests/coverage_report.py
58+
run: uv run python tests/coverage_report.py
5959

6060
validate-approval-logic:
6161
name: Validate Approval Logic
@@ -71,8 +71,8 @@ jobs:
7171

7272
- name: Install dependencies
7373
working-directory: .github/workflows/lib
74-
run: uv pip install .[test] --system
74+
run: uv sync
7575

7676
- name: Validate approval logic
7777
working-directory: .github/workflows/lib
78-
run: python tests/validate_approval_logic.py
78+
run: uv run python tests/validate_approval_logic.py

0 commit comments

Comments
 (0)