forked from Mirror/pmbootstrap
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
This commit is contained in:
parent
9987d61158
commit
e5dfbd9293
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ fi
|
||||||
# Sanity check docs that all modules are documented.
|
# Sanity check docs that all modules are documented.
|
||||||
# Ignore all packages and files named test*
|
# Ignore all packages and files named test*
|
||||||
fail=0
|
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
|
for module in $modules; do
|
||||||
if ! grep -q "automodule:: $module" docs/api/*.rst; then
|
if ! grep -q "automodule:: $module" docs/api/*.rst; then
|
||||||
echo "Undocumented module: $module"
|
echo "Undocumented module: $module"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue