30 lines
656 B
YAML
30 lines
656 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-24.04-slim
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
steps:
|
|
# The slim runner image already ships Node.js (for JS actions) and git.
|
|
- name: Install Python
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends python3 ca-certificates
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Compile
|
|
run: python3 -m py_compile tools/*.py web/server.py
|
|
|
|
- name: Unit tests
|
|
run: python3 -m unittest discover -v
|
|
|
|
- name: Check Markdown links
|
|
run: python3 tools/check_links.py
|