Skip to content

Publish one heartbeat news item #192

Publish one heartbeat news item

Publish one heartbeat news item #192

Workflow file for this run

name: Haber Quality Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install Python pipeline
run: |
python -m pip install --upgrade pip
pip install -e news_pipeline[test]
- name: Compile Python pipeline
run: python -m compileall news_pipeline/news_pipeline
- name: Run provider-free pipeline tests
run: python -m pytest news_pipeline/tests
- name: Check deprecated CLI guardrails
run: |
if news-pipeline --help | grep -q "^│ publish"; then
echo "direct publish command should not appear in public help" >&2
exit 1
fi
set +e
news-pipeline publish __ci_guardrail__ >/tmp/publish.out 2>&1
code=$?
set -e
cat /tmp/publish.out
test "$code" -eq 2
grep -q "DEPRECATED: news-pipeline publish is disabled" /tmp/publish.out
grep -q "heartbeat publish-one" /tmp/publish.out
- name: Run pipeline audits
run: |
news-pipeline audit-content
news-pipeline audit-images
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install Node dependencies
run: npm ci
- name: Build Astro site
env:
PUBLIC_SITE_URL: https://haber.sametbasbug.dev
PUBLIC_NEWS_SITE_URL: https://haber.sametbasbug.dev
PUBLIC_MAIN_SITE_URL: https://sametbasbug.dev
PUBLIC_NEWS_SUBDOMAIN_ENABLED: 'true'
run: npm run build