Update/run ci script (#352)

* New questions and spell check (#181)

Added new questions related with KVM, Libvirt and DNF

* Improve run_ci script readability

* Change shell in workflow
This commit is contained in:
Adrian 2023-03-25 12:05:56 +01:00 committed by GitHub
parent 5599587dad
commit 9e9a6a35d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View File

@ -14,5 +14,5 @@ jobs:
- name: Give executable permissions to run_ci.sh inside the scripts directory - name: Give executable permissions to run_ci.sh inside the scripts directory
run: chmod a+x scripts/run_ci.sh run: chmod a+x scripts/run_ci.sh
- name: Run the ci script inside the scripts folder - name: Run the ci script inside the scripts folder
run: sh scripts/run_ci.sh run: bash scripts/run_ci.sh
shell: bash shell: bash

View File

@ -1,15 +1,15 @@
#!/bin/bash #!/usr/bin/env bash
# These are the same steps we are running in Travis CI
set -euo pipefail
find . -name "*.md" -not -path "./tests/*" | \ PROJECT_DIR="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/.."
xargs -I {} \
python $(dirname "$0")/../tests/syntax_lint.py {} > /dev/null MD_FILES=$(find ${PROJECT_DIR} -name "*.md" -not -path "${PROJECT_DIR}/tests/*")
mdPassed=$?
flake8 --max-line-length=100 . && echo "PEP8 Passed" for file in ${MD_FILES[@]}; do
pyPassed=$? python ${PROJECT_DIR}/tests/syntax_lint.py ${file} > /dev/null
if [ $pyPassed -eq 0 ] && [ $mdPassed -eq 0 ];then done
exit 0
else echo "- Syntax lint tests on MD files passed sucessfully"
exit 1
fi flake8 --max-line-length=100 . && echo "- PEP8 Passed"