cvm: add cli to retrieve TDREPORT (#5) #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Code Scan | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'common/**/*.py' | |
- 'vmsdk/**/*.py' | |
pull_request: | |
paths: | |
- 'common/**/*.py' | |
- 'vmsdk/**/*.py' | |
workflow_dispatch: | |
jobs: | |
codescan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install pylint pydocstyle | |
python3 -m pip install -r ./common/python/requirements.txt | |
python3 -m pip install -r ./vmsdk/python/requirements.txt | |
sudo apt update | |
- name: Analyze python code | |
run: | | |
set -ex | |
source setupenv.sh | |
python_files=$(find ./ -name "*.py" -print) | |
if [[ -n "$python_files" ]]; then | |
echo "$python_files" | xargs -n 1 python3 -m pylint --rcfile=.github/pylintrc | |
#echo "$python_files" | xargs -n 1 python3 -m pydocstyle --convention=google | |
else | |
echo "No python files found." | |
fi |