Skip to content

Commit c7584f1

Browse files
committed
install python dependencies in github action
1 parent ada2fea commit c7584f1

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.github/workflows/check-build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,26 @@ jobs:
3131
continue-on-error: true
3232
id: spellcheck
3333

34-
# Step 4: Run knowledgebase article checker
34+
# Step 4: Setup Python and dependencies for KB checker
35+
- name: Set up Python
36+
uses: actions/setup-python@v3
37+
with:
38+
python-version: '3.x'
39+
40+
# Step 5: Install Python dependencies
41+
- name: Install dependencies
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install -r 'scripts/knowledgebase-checker/requirements.txt'
45+
46+
# Step 5: Run knowledgebase article checker
3547
- name: Check KB
3648
run: |
37-
./scripts/knowledgebase_article_checker.py --kb-dir="../knowledgebase"
49+
./scripts/knowledgebase-checker/knowledgebase_article_checker.py --kb-dir="../../knowledgebase"
3850
continue-on-error: true
3951
id: kbcheck
4052

41-
# Step 5: Fail the build if any script returns exit code 1
53+
# Step 6: Fail the build if any script returns exit code 1
4254
- name: Check exit code
4355
run: |
4456
if [[ "${{ steps.spellcheck.outcome }}" == "failure" ]] || [[ "${{ steps.kbcheck.outcome }}" == "failure" ]]; then
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
argparse
2+
os
3+
yaml
4+
re
5+
colored

0 commit comments

Comments
 (0)