Skip to content

docs: certify multilingual public release state #19

docs: certify multilingual public release state

docs: certify multilingual public release state #19

Workflow file for this run

name: WikiStub-Seed test gates
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
python-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.10', '3.13']
steps:
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install development checks
run: python -m pip install --disable-pip-version-check -r requirements-dev.txt
- name: Lint Python sources
run: ruff check .
- name: Compile Python sources
run: python -m compileall -q -f .
- name: Run Python unit and regression tests
env:
PYTHONIOENCODING: utf-8
PYTHONDONTWRITEBYTECODE: '1'
run: python -m unittest discover -s tests -p "test_*.py"
- name: Check CLI and data pipeline
env:
PYTHONIOENCODING: utf-8
PYTHONDONTWRITEBYTECODE: '1'
run: |
python wikistub_seed_cli.py --help
python wikistub_seed_cli.py stats
python wikistub_seed_cli.py check
python wikistub_seed_pipeline.py validate
pwa-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: '24'
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.13'
- name: Rebuild PWA data
env:
PYTHONIOENCODING: utf-8
PYTHONDONTWRITEBYTECODE: '1'
run: python web_publisher/_build.py
- name: Reject stale generated data
run: git diff --exit-code -- web_publisher/data
- name: Run PWA regression tests
run: node --test web_publisher/tests/publisher.test.mjs