Skip to content

Commit dd589d1

Browse files
committed
Added github workflow
1 parent b2210ba commit dd589d1

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
echo "No changed files to check."
6060
fi
6161
62+
- name: check missing __init__ files
63+
run: build_tools/fail_on_missing_init_files.sh
64+
shell: bash
65+
6266
run-tests-no-extras:
6367
needs: code-quality
6468
strategy:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Script to search for missing init FILES.
4+
set -euxo pipefail
5+
6+
FILES=$( find ./sktime -type d '!' -exec test -e "{}/__init__.py" ";" -not -path "**/__pycache__" -not -path "**/datasets/data*" -not -path "**/contrib/*" -print )
7+
8+
if [[ -n "$FILES" ]]
9+
then
10+
echo "Missing __init__.py files detected in the following modules:"
11+
echo "$FILES"
12+
exit 1
13+
fi

0 commit comments

Comments
 (0)