This commit is contained in:
parent
a8b432464b
commit
2ab142af62
1 changed files with 19 additions and 21 deletions
40
.github/workflows/pylint.yml
vendored
40
.github/workflows/pylint.yml
vendored
|
@ -1,26 +1,24 @@
|
||||||
name: Pylint
|
name: Pylint
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
Pylint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
strategy:
|
container: catthehacker/ubuntu:act-latest
|
||||||
matrix:
|
|
||||||
python-version: ["3.11.2"]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
- uses: https://github.com/actions/checkout@v3
|
uses: actions/checkout@v3.6.0
|
||||||
- name: Set up Python 3.11.2
|
with:
|
||||||
uses: https://github.com/actions/setup-python@v3
|
token: ${{ secrets.COASTALCOMMITSTOKEN}}
|
||||||
with:
|
- name: Set up Python 3.11
|
||||||
python-version: ${{ matrix.python-version }}
|
run: |
|
||||||
- name: Install dependencies
|
add-apt-repository ppa:deadsnakes/ppa
|
||||||
run: |
|
apt install -y python3.11 gcc python3-dev
|
||||||
python -m pip install --upgrade pip
|
- name: Install dependencies
|
||||||
pip install pylint
|
run: |
|
||||||
pip install -U git+https://github.com/revoltchat/revolt.py
|
python3.11 -m pip install --upgrade pip
|
||||||
pip install python-dotenv mysql-connector-python pytimeparse2 colorthief
|
python3.11 -m pip install pylint
|
||||||
- name: Analysing the code with pylint
|
python3.11 -m pip install -U git+https://github.com/revoltchat/revolt.py
|
||||||
run: |
|
python3.11 -m pip install python-dotenv mysql-connector-python pytimeparse2 colorthief
|
||||||
pylint $(git ls-files '*.py')
|
- name: Analysing the code with Pylint
|
||||||
|
run: pylint $(git ls-files '*.py')
|
Loading…
Reference in a new issue