Skip to content

Commit bcf3e2e

Browse files
committed
fix: CI — uv.sources for component-framework git dep, activate venv via GITHUB_PATH
1 parent ed3952c commit bcf3e2e

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
uv venv
27-
uv pip install "git+https://github.com/fsecada01/component-framework.git"
2827
uv pip install -e ".[dev]"
28+
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
2929
3030
- name: Install Playwright browsers
31-
run: uv run playwright install chromium --with-deps
31+
run: playwright install chromium --with-deps
3232

3333
- name: Lint
34-
run: uv run ruff check src tests
34+
run: ruff check src tests
3535

3636
- name: Format check
37-
run: uv run ruff format --check src tests
37+
run: ruff format --check src tests
3838

3939
- name: Unit tests
40-
run: uv run pytest tests/unit/ -q --tb=short
40+
run: pytest tests/unit/ -q --tb=short
4141

4242
- name: Integration tests
43-
run: uv run pytest tests/integration/ -q --tb=short
43+
run: pytest tests/integration/ -q --tb=short
4444

4545
- name: E2E tests
46-
run: uv run pytest tests/e2e/ -q --tb=short --browser chromium
46+
run: pytest tests/e2e/ -q --tb=short --browser chromium

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ testpaths = ["tests"]
7070
pythonpath = ["src"]
7171
asyncio_mode = "auto"
7272

73+
[tool.uv.sources]
74+
component-framework = { git = "https://github.com/fsecada01/component-framework.git" }
75+
7376
[tool.ruff]
7477
line-length = 100
7578
target-version = "py311"

0 commit comments

Comments
 (0)