misc(repo): added pylint workflow
Some checks failed
Pylint / Pylint (3.11.2) (push) Failing after 3s

This commit is contained in:
Seaswimmer 2023-09-22 18:52:28 -04:00
parent 2b66a017f6
commit 5dc41df851
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8
2 changed files with 23 additions and 19 deletions

View file

@ -1,19 +0,0 @@
name: Forgejo Actions Demo
run-name: ${{ forgejo.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Forgejo-Actions:
runs-on: docker
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ forgejo.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ forgejo.ref }} and your repository is ${{ forgejo.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ forgejo.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ forgejo.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

View file

@ -0,0 +1,23 @@
name: Pylint
on: [push]
jobs:
Pylint:
runs-on: docker
container: catthehacker/ubuntu:act-latest
strategy:
matrix:
python-version: ["3.11.2"]
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 pylint
pip install -U Red-DiscordBot pytimeparse2 yt-dlp
- name: Analysing the code with pylint
run: pylint $(git ls-files '*.py')