33 lines
776 B
YAML
33 lines
776 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: debian:trixie-slim
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
steps:
|
|
# actions/checkout is a JavaScript action: it needs node inside the job
|
|
# container, and git to fetch the repository.
|
|
- name: Install runtime dependencies
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends nodejs git 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
|