Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Doc: add CCNP html documentation #46

Doc: add CCNP html documentation

Doc: add CCNP html documentation #46

Workflow file for this run

name: Python Code Scan
on:
push:
branches:
- main
paths:
- 'sdk/python3/ccnp/**.py'
pull_request:
paths:
- 'sdk/python3/ccnp/**.py'
workflow_dispatch:
jobs:
scan_python:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
- name: Setup Python action
uses: actions/setup-python@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pylint
python3 -m pip install -r ./sdk/python3/requirements.txt
- name: Analyze python code
run: |
set -ex
export PYTHONPATH=$PWD/ccnp:$PYTHONPATH
python_files=$(find . \( -path ./sdk/python3/tests -o -path ./docs \) -prune -o -name "*.py" -print)
if [[ -n "$python_files" ]]; then
echo "$python_files" | xargs -n 1 python3 -m pylint --rcfile=.github/pylintrc
else
echo "No Python files found."
fi