Skip to content

chore: v3.7.1 β€” ClawHub display name "WordPress API Pro" #20

chore: v3.7.1 β€” ClawHub display name "WordPress API Pro"

chore: v3.7.1 β€” ClawHub display name "WordPress API Pro" #20

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.11'
- '3.12'
- '3.13'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Validate shell wrapper syntax
run: bash -n wordpress-api-pro/wp.sh
- name: Compile Python scripts
run: python -m compileall wordpress-api-pro/scripts
- name: Unit tests
run: |
python3 tests/test_cpt_seeding.py
python3 tests/test_site_audit.py
- name: Seed dry-run smoke (no network)
run: |
python3 wordpress-api-pro/scripts/seed_content.py --dataset tests/fixtures/seed.json > /tmp/plan.json
python3 -c "import json;d=json.load(open('/tmp/plan.json'));assert d['dry_run'] and len(d['plan'])==2;print('smoke ok')"
- name: Run package smoke tests
run: npm test
- name: Validate npm package contents
run: npm pack --dry-run