Skip to content

Commit

Permalink
Update/run ci script (bregman-arie#352)
Browse files Browse the repository at this point in the history
* New questions and spell check (bregman-arie#181)

Added new questions related with KVM, Libvirt and DNF

* Improve run_ci script readability

* Change shell in workflow
  • Loading branch information
adrianfusco authored Mar 25, 2023
1 parent 5599587 commit 9e9a6a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
- name: Give executable permissions to run_ci.sh inside the scripts directory
run: chmod a+x scripts/run_ci.sh
- name: Run the ci script inside the scripts folder
run: sh scripts/run_ci.sh
run: bash scripts/run_ci.sh
shell: bash
30 changes: 15 additions & 15 deletions scripts/run_ci.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash
# These are the same steps we are running in Travis CI


find . -name "*.md" -not -path "./tests/*" | \
xargs -I {} \
python $(dirname "$0")/../tests/syntax_lint.py {} > /dev/null
mdPassed=$?
flake8 --max-line-length=100 . && echo "PEP8 Passed"
pyPassed=$?
if [ $pyPassed -eq 0 ] && [ $mdPassed -eq 0 ];then
exit 0
else
exit 1
fi
#!/usr/bin/env bash

set -euo pipefail

PROJECT_DIR="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/.."

MD_FILES=$(find ${PROJECT_DIR} -name "*.md" -not -path "${PROJECT_DIR}/tests/*")

for file in ${MD_FILES[@]}; do
python ${PROJECT_DIR}/tests/syntax_lint.py ${file} > /dev/null
done

echo "- Syntax lint tests on MD files passed sucessfully"

flake8 --max-line-length=100 . && echo "- PEP8 Passed"

0 comments on commit 9e9a6a3

Please sign in to comment.