From e5dfbd92930441faa67e07122cd1b5dcd5783e3f Mon Sep 17 00:00:00 2001 From: Newbyte Date: Wed, 4 Jun 2025 20:18:20 +0200 Subject: [PATCH] CI: Skip removing files that start with test in docs check Tests were moved out of the pmb directory into their own test directory, so no need to try to exclude them when they shouldn't be there anyway. If test "documentation" appears in the docs with this, there's a test that is where it shouldn't be and a separate bug. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2619 --- .ci/docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/docs.sh b/.ci/docs.sh index 625c6018..c326c3c2 100755 --- a/.ci/docs.sh +++ b/.ci/docs.sh @@ -18,7 +18,7 @@ fi # Sanity check docs that all modules are documented. # Ignore all packages and files named test* fail=0 -modules="$(find pmb/ -name "*.py" | grep -v '/__init__.py' | grep -v '/test' | grep -v '/conftest.py' | sort | sed 's|\.py$||' | sed 's|/|.|g')" +modules="$(find pmb/ -name "*.py" | grep -v '/__init__.py' | grep -v '/conftest.py' | sort | sed 's|\.py$||' | sed 's|/|.|g')" for module in $modules; do if ! grep -q "automodule:: $module" docs/api/*.rst; then echo "Undocumented module: $module"