feat: root capabilities and extend(), and make materialization idempotent #90
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| pytest: | |
| name: pytest (py${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| # The suite runs in ~2s, so anything approaching this is a hang, not slowness. | |
| # Since 0.20.1 homie.Property takes a lock, and a lock regression (notably making | |
| # it non-reentrant) deadlocks the thread that hits it: without a bound, GitHub | |
| # would let that run to the 6-hour default rather than reporting a failure. | |
| timeout-minutes: 5 | |
| strategy: | |
| # Run every version even if one fails, so a single-version break is | |
| # visible as exactly that rather than masking the rest. | |
| fail-fast: false | |
| matrix: | |
| # Mirror pyproject's requires-python (>=3.10) and the classifiers. | |
| # CI previously ran only 3.12, so 3.10/3.11/3.13 were unverified | |
| # despite being declared supported (the StrEnum polyfill in homie.py | |
| # exists precisely for <3.11). | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: pip install -e '.[dev]' | |
| - run: python -m pytest -q |