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
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"

- name: Install uv
uses: astral-sh/setup-uv@v4
enable-cache: true

- name: Install dependencies
run: uv sync --group dev
Expand All @@ -29,11 +27,9 @@ jobs:
run: uv run pytest

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: coverage.xml
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}


4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: uv run playwright install chromium

- name: Run tests
run: uv run pytest tests/ -v --tb=short
run: uv run pytest anyplotlib/tests/ -v --tb=short

minimum-deps:
name: Minimum deps (Python 3.10 / ubuntu)
Expand All @@ -77,4 +77,4 @@ jobs:
run: uv run playwright install chromium --with-deps

- name: Run tests
run: uv run pytest tests/ -v --tb=short
run: uv run pytest anyplotlib/tests/ -v --tb=short
Empty file added anyplotlib/tests/__init__.py
Empty file.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion tests/conftest.py → anyplotlib/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _build_ready_html(widget):

def _screenshot_widget(browser, widget):
"""Render *widget* in headless Chromium; return an H×W×C uint8 ndarray."""
from tests._png_utils import decode_png
from anyplotlib.tests._png_utils import decode_png

html = _build_ready_html(widget)

Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
import pytest

import anyplotlib as apl
from tests.conftest import _run_bench
from anyplotlib.tests.conftest import _run_bench

# ── constants ────────────────────────────────────────────────────────────────
BASELINES_PATH = pathlib.Path(__file__).parent / "benchmarks" / "baselines.json"
Expand Down
Empty file.
Loading
Loading