From 2ab142af6226c29066fd5a68d05c174271dcccbc Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sun, 24 Sep 2023 08:05:42 -0400 Subject: [PATCH] Update .github/workflows/pylint.yml --- .github/workflows/pylint.yml | 40 +++++++++++++++++------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 03e4772..63bf1e0 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,26 +1,24 @@ name: Pylint - on: [push] jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11.2"] + Pylint: + runs-on: docker + container: catthehacker/ubuntu:act-latest steps: - - name: Checkout - - uses: https://github.com/actions/checkout@v3 - - name: Set up Python 3.11.2 - uses: https://github.com/actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - pip install -U git+https://github.com/revoltchat/revolt.py - pip install python-dotenv mysql-connector-python pytimeparse2 colorthief - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') + - name: Checkout + uses: actions/checkout@v3.6.0 + with: + token: ${{ secrets.COASTALCOMMITSTOKEN}} + - name: Set up Python 3.11 + run: | + add-apt-repository ppa:deadsnakes/ppa + apt install -y python3.11 gcc python3-dev + - name: Install dependencies + run: | + python3.11 -m pip install --upgrade pip + python3.11 -m pip install pylint + python3.11 -m pip install -U git+https://github.com/revoltchat/revolt.py + python3.11 -m pip install python-dotenv mysql-connector-python pytimeparse2 colorthief + - name: Analysing the code with Pylint + run: pylint $(git ls-files '*.py') \ No newline at end of file