From 5dc41df851096ee1af1a25548e4751051943566e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 22 Sep 2023 18:52:28 -0400 Subject: [PATCH] misc(repo): added pylint workflow --- .forgejo/workflows/forgejo-actions-test.yaml | 19 ---------------- .forgejo/workflows/pylint.yaml | 23 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 19 deletions(-) delete mode 100644 .forgejo/workflows/forgejo-actions-test.yaml create mode 100644 .forgejo/workflows/pylint.yaml diff --git a/.forgejo/workflows/forgejo-actions-test.yaml b/.forgejo/workflows/forgejo-actions-test.yaml deleted file mode 100644 index bca772d..0000000 --- a/.forgejo/workflows/forgejo-actions-test.yaml +++ /dev/null @@ -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 }}." diff --git a/.forgejo/workflows/pylint.yaml b/.forgejo/workflows/pylint.yaml new file mode 100644 index 0000000..410e5a5 --- /dev/null +++ b/.forgejo/workflows/pylint.yaml @@ -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')