skelton #1
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: Pylint Scan | |
on: | |
pull_request: | |
paths: | |
- 'src/**/*.py' | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**/*.py' | |
workflow_dispatch: | |
jobs: | |
codescan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip3 install --upgrade pip | |
pip3 install pylint | |
for f in $(find -type f -name "requirements.txt"); do | |
pip3 install -r $f | |
done | |
- name: Analyzing the python code | |
run: | | |
set -ex | |
export PYTHONPATH=$PWD/src/tia/ | |
find . -type f -name "*.py" | xargs pylint |