Skip to content

Commit cc71fe7

Browse files
committed
build: generate documentation as part of the validation check
1 parent 9a04096 commit cc71fe7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/run_validation.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44

55
set -e
66

7-
script_dir=`dirname $0`
8-
cd ${script_dir}/..
7+
script_dir=$(dirname "$0")
8+
cd "${script_dir}"/..
99

1010
pip install -U -r requirements/testing.txt \
11-
-U -r requirements/optional.txt
11+
-U -r requirements/optional.txt
1212

1313
echo "Generating code ..." && python scripts/codegen.py --path .
14+
echo "Generating docs ..." && CI=true bash scripts/generate_api_docs.sh
1415
echo "Running black (code formatter) ..." && black slack_sdk/
1516

1617
black --check slack/ slack_sdk/ tests/ integration_tests/
1718
flake8 slack/ slack_sdk/
1819

1920
test_target="${1:-tests/}"
20-
PYTHONPATH=$PWD:$PYTHONPATH pytest --cov-report=xml --cov=slack_sdk/ $test_target
21+
PYTHONPATH=$PWD:$PYTHONPATH pytest --cov-report=xml --cov=slack_sdk/ "$test_target"

0 commit comments

Comments
 (0)