ci: run tests in a debian slim container
CI / test (push) Successful in 1m18s

This commit is contained in:
strsv committed 2026-11-06 17:58:52 +03:00
1 parent adc832c042
commit 4d3c50d979
4 files changed
+22 -12

No files matched your search

+14 -8
View File
@@ -7,20 +7,26 @@ on:
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: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Compile
run: python -m py_compile tools/*.py web/server.py
run: python3 -m py_compile tools/*.py web/server.py
- name: Unit tests
run: python -m unittest discover -v
run: python3 -m unittest discover -v
- name: Check Markdown links
run: python tools/check_links.py
run: python3 tools/check_links.py