This commit is contained in:
1 parent
adc832c042
commit
4d3c50d979
4 files changed
+22
-12
No files matched your search
+14
-8
@@ -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
|
||||
Reference in new issue
Block a user