Skip to content

Merge pull request #1 from MHToolkit/feat/apple-design-baseline #4

Merge pull request #1 from MHToolkit/feat/apple-design-baseline

Merge pull request #1 from MHToolkit/feat/apple-design-baseline #4

Workflow file for this run

name: Website checks
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
static-site:
name: Static site and design contract
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Verify Apple Design contract
run: python -m unittest discover -s tests -p 'test_*.py'
- name: Serve and smoke-test the published document
run: |
python -m http.server 8765 --directory . >/tmp/mhtoolkit-site.log 2>&1 &
server_pid=$!
trap 'kill "$server_pid"' EXIT
curl --fail --retry 5 --retry-connrefused http://127.0.0.1:8765/
- name: Reject whitespace errors
run: git diff --check