Run pycodestyle and pyflakes in CI #29
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: runci | |
| "on": | |
| - pull_request | |
| - push | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| python-version: [3.9, 3.x] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} ${{ matrix.os }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install test and linting tools | |
| run: | | |
| pip install pytest pycodestyle pyflakes | |
| - name: Run tests | |
| run: | | |
| pytest -v | |
| - name: Check Codingstyle | |
| run: | | |
| pycodestyle --ignore=E501,E722,W503,W504 . dropmsg pythonfilter pythonfilter-quarantine | |
| pyflakes . dropmsg pythonfilter pythonfilter-quarantine |