devops-exercises/scripts/run_ci.sh
Adrian 9e9a6a35d7
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
2023-03-25 14:05:56 +03:00

15 lines
400 B
Bash
Executable File

#!/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"