Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,19 @@ jobs:
# Issue ref: https://github.com/actions/setup-python/issues/436
# cache: "pip"
# cache-dependency-path: pyproject.toml
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Get coverage files
uses: actions/download-artifact@v5
with:
pattern: coverage-*
path: coverage
merge-multiple: true
- run: pip install coverage[toml]
- run: uv sync --locked --all-extras --dev
- run: ls -la coverage
- run: coverage combine coverage
- run: coverage report
- run: coverage html --title "Coverage for ${{ github.sha }}"
- run: uv run coverage combine coverage
- run: uv run coverage report
- run: uv run coverage html --title "Coverage for ${{ github.sha }}"
- name: Store coverage HTML
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion tests/test_cli_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@


@pytest.mark.respx(base_url=settings.base_api_url)
def test_shows_a_message_if_something_is_wrong(respx_mock: respx.MockRouter) -> None:
def test_shows_a_message_if_something_is_wrong(
logged_out_cli: None, respx_mock: respx.MockRouter
) -> None:
with patch("fastapi_cloud_cli.commands.login.typer.launch") as mock_open:
respx_mock.post(
"/login/device/authorization", data={"client_id": settings.client_id}
Expand Down