[GRASS-git] [OSGeo/grass-addons] aa9b01: tests: Add pytest in CI (#1769)

Vaclav Petras noreply at github.com
Wed Jul 15 08:38:38 PDT 2026


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: aa9b0187fb85c7d0a0101dfc08c3a1dd92abc232
      https://github.com/OSGeo/grass-addons/commit/aa9b0187fb85c7d0a0101dfc08c3a1dd92abc232
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M .github/workflows/ci.yml
    M .github/workflows/requirements.txt
    M pyproject.toml

  Log Message:
  -----------
  tests: Add pytest in CI (#1769)

Run pytest-based addon tests in CI, in addition to the existing
gunittest runs. A new CI step discovers each addon's tests/ directory
and runs pytest per addon in a separate process for isolation. When an
addon ships a requirements.txt, it is installed first, and tools that
need network access (now: r.estimap.recreation) are skipped. A directory
with no collected tests is not treated as a failure.

Add the pytest configuration (import mode, test-file patterns, markers,
and a per-test timeout) to pyproject.toml, and add pytest and
pytest-timeout to the CI requirements.

The CI configuration was generated with the help of Claude and the setup
was tested locally.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications


More information about the grass-commit mailing list