| 1 | name: Run linting |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | paths: |
| 7 | - "pytermgui/**" |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | runs-on: ubuntu-latest |
| 12 | strategy: |
| 13 | matrix: |
| 14 | python-version: ["3.8", "3.9", "3.10"] |
| 15 | steps: |
| 16 | - uses: actions/checkout@v2 |
| 17 | |
| 18 | - name: Set up Python ${{ matrix.python-version }} |
| 19 | uses: actions/setup-python@v2 |
| 20 | with: |
| 21 | python-version: ${{ matrix.python-version }} |
| 22 | |
| 23 | - name: Install dependencies |
| 24 | run: | |
| 25 | python -m pip install --upgrade pip |
| 26 | |
| 27 | pip install . |
| 28 | pip install pylint |
| 29 | |
| 30 | - name: Analysing the code with pylint |
| 31 | run: | |
| 32 | pylint --fail-under 10.0 -d fixme pytermgui |