instructions added in doc file #152
This file contains hidden or 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: Lint | |
| on: [push] | |
| jobs: | |
| lint-python: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pycodestyle | |
| - name: Analysing the code with pycodestyle | |
| run: | | |
| pycodestyle --ignore=E501,W503 $(git ls-files 'learning_observer/*.py' 'modules/*.py') | |
| lint-node: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '16.x' | |
| - name: Install dependencies | |
| run: | | |
| npm install | |
| - name: List unused CSS | |
| run: npm run find-unused-css | |
| - name: Lint CSS | |
| run: npm run lint:css | |
| - name: Lint JS | |
| run: npm run lint:js |