| name: Pylint |
| |
| on: |
| push: |
| |
| workflow_dispatch: |
| |
| jobs: |
| build: |
| |
| runs-on: ubuntu-latest |
| strategy: |
| max-parallel: 4 |
| matrix: |
| python-version: [3.7] |
| |
| steps: |
| - uses: actions/checkout@master |
| with: |
| persist-credentials: false |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v4.5.0 |
| with: |
| python-version: ${{ matrix.python-version }} |
| - name: Install dependencies |
| run: | |
| sudo apt-get update -y |
| sudo apt-get install -y libldap2-dev libsasl2-dev ldap-utils |
| python -m pip install --upgrade pip |
| pip install pylint |
| pip install -r requirements.txt |
| - name: Test with pylint |
| run: | |
| pylint asfpy/*.py setup.py |