misc(repo): added pylint workflow
Some checks failed
Pylint / Pylint (3.11.2) (push) Failing after 3s
Some checks failed
Pylint / Pylint (3.11.2) (push) Failing after 3s
This commit is contained in:
parent
2b66a017f6
commit
5dc41df851
2 changed files with 23 additions and 19 deletions
|
@ -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 }}."
|
|
23
.forgejo/workflows/pylint.yaml
Normal file
23
.forgejo/workflows/pylint.yaml
Normal 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')
|
Loading…
Reference in a new issue