chore: publish 0.1.7 with the expanded phrase list #5
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: tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| # 3.11 is Kodi 21 (Omega)'s interpreter and the syntax floor; 3.13 guards | |
| # against breakage on newer interpreters. Kodi 19/20 (3.8) are not targeted. | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: pip install -e ".[dev]" | |
| - run: python -m ruff check . | |
| - run: python -m pyright | |
| # Tests that read bundled data skip in a copied tree (a mutation | |
| # runner). In CI they must all run -- a skip here means the data is | |
| # genuinely missing, which is a packaging regression. | |
| - run: python -m pytest -v --strict-markers -W error::UserWarning | |
| - name: no tests were skipped | |
| run: | | |
| python -m pytest -q 2>&1 | tee /tmp/pytest.out | |
| if grep -qE '[0-9]+ skipped' /tmp/pytest.out; then | |
| echo "Tests were skipped in CI; bundled data is likely missing." | |
| exit 1 | |
| fi | |
| - name: no kodi imports in pure modules | |
| run: | | |
| matches=$(grep -rn "^import xbmc\|^from xbmc" \ | |
| screensaver.splitflap/resources/lib/layout.py screensaver.splitflap/resources/lib/flap.py screensaver.splitflap/resources/lib/drum.py \ | |
| screensaver.splitflap/resources/lib/geometry.py screensaver.splitflap/resources/lib/glyphs.py screensaver.splitflap/resources/lib/charset.py \ | |
| screensaver.splitflap/resources/lib/compose.py screensaver.splitflap/resources/lib/rotator.py screensaver.splitflap/resources/lib/colour.py \ | |
| screensaver.splitflap/resources/lib/glyphgen.py screensaver.splitflap/resources/lib/sources/base.py screensaver.splitflap/resources/lib/sources/phrases.py \ | |
| screensaver.splitflap/resources/lib/sources/remote.py \ | |
| 2>/dev/null || true) | |
| if [ -n "$matches" ]; then | |
| echo "Kodi import found in a pure module:" | |
| echo "$matches" | |
| exit 1 | |
| fi | |
| - name: package addon | |
| run: ./tools/build_addon.sh | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: addon-zip-${{ matrix.python-version }} | |
| path: build/*.zip |