Spaces:
Sleeping
Sleeping
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install a TrueType font (for the social card) | |
| run: sudo apt-get update && sudo apt-get install -y --no-install-recommends fonts-dejavu-core | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt esprima | |
| - name: Byte-compile Python | |
| run: python -m py_compile *.py | |
| - name: Smoke test (JS syntax, build render, JSON-LD, social card) | |
| run: python tests/smoke_test.py | |