Migrate to discordpy v2 #149
This file contains 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: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Attempt to use cached dependencies | |
id: cache-python | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements-dev.txt') }} | |
- name: Install dependencies | |
if: steps.cache-python.outputs.cache-hit != 'true' | |
run: pip install -r requirements-dev.txt | |
- name: Running autopep8 | |
run: autopep8 --exit-code -ra --diff feeds/ forums/ reddit/ util/ ./main.py | |
- name: Running isort | |
run: isort . | |
- name: Analysing the code with pylint | |
run: | | |
pylint feeds/ forums/ reddit/ util/ ./main.py | |
- name: Analysing the code with pycodestyle (pep-8) | |
run: | | |
pycodestyle --show-source --show-pep8 feeds/ forums/ reddit/ util/ ./main.py |