fix(ci): start Radicale in its own step - GITHUB_ENV reaches only later steps (#156)
CI / verify (push) Successful in 1m56s

Files changed:
- .gitea/scripts/start-radicale.sh
- .gitea/workflows/ci.yml
This commit is contained in:
torben committed 2026-09-30 13:37:25 +02:00
1 parent 6554791699
commit 5a4c5182b7
2 files changed
+10 -3

No files matched your search

+2 -1
View File
@@ -23,7 +23,8 @@ htpasswd_encryption = plain
[storage] [storage]
filesystem_folder = $work/data filesystem_folder = $work/data
CONF CONF
"$python" -m radicale --config "$work/config" > "$work/radicale.log" 2>&1 & # nohup: the server has to outlive this step's shell - the suite runs in the next step.
nohup "$python" -m radicale --config "$work/config" > "$work/radicale.log" 2>&1 &
# The readiness probe uses the same Python, not curl: ci.yml's job image has no curl. # The readiness probe uses the same Python, not curl: ci.yml's job image has no curl.
ready=' ready='
import base64, sys, urllib.request import base64, sys, urllib.request
+8 -2
View File
@@ -132,6 +132,14 @@ jobs:
.venv/bin/python -m pytest -q \ .venv/bin/python -m pytest -q \
--cov --cov-report=term --cov-report=xml --cov-report=html --cov --cov-report=term --cov-report=xml --cov-report=html
- name: Start Radicale
# Its own step because the script hands the server's address to the suite through
# $GITHUB_ENV, which only reaches the steps after the one that wrote it.
run: |
set -eu
tools/.venv/bin/pip install --quiet radicale
.gitea/scripts/start-radicale.sh tools/.venv/bin/python /tmp/radicale
- name: Live tracker suite (CalDAV) - name: Live tracker suite (CalDAV)
# The one live tracker that needs no app and no display: a throwaway Radicale on # The one live tracker that needs no app and no display: a throwaway Radicale on
# loopback. `CHEMENU_LIVE_REQUIRE=caldav` turns "no server" into a failure - without # loopback. `CHEMENU_LIVE_REQUIRE=caldav` turns "no server" into a failure - without
@@ -142,8 +150,6 @@ jobs:
CHEMENU_LIVE_REQUIRE: caldav CHEMENU_LIVE_REQUIRE: caldav
run: | run: |
set -eu set -eu
tools/.venv/bin/pip install --quiet radicale
.gitea/scripts/start-radicale.sh tools/.venv/bin/python /tmp/radicale
cd tools cd tools
.venv/bin/python -m pytest -q -m live_tracker -k caldav -s .venv/bin/python -m pytest -q -m live_tracker -k caldav -s