From f039a6f77a7590ba87c687f91c5bd4fda0750589 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sat, 2 Mar 2024 16:44:53 -0600 Subject: [PATCH] workflow/pylint: copy default --- .forgejo/workflows/pylint.yml | 31 ------------------------------- .github/workflows/pylint.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 31 deletions(-) delete mode 100644 .forgejo/workflows/pylint.yml create mode 100644 .github/workflows/pylint.yml diff --git a/.forgejo/workflows/pylint.yml b/.forgejo/workflows/pylint.yml deleted file mode 100644 index 0624d21..0000000 --- a/.forgejo/workflows/pylint.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - test: - runs-on: docker - container: - image: fedora:38 # lock to latest *stable*; rawhide/next is 'latest' tag - steps: - - name: Make DNF faster - run: | - echo "Giving DNF these directives:" - echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf - - - name: Install package dependencies - run: dnf -yq install nodejs git python3-pip - - - uses: actions/checkout@v3 - - name: Install Python dependencies - run: | - python3 -m pip -qq install --upgrade pip - python3 -m pip -qq install --no-compile -r requirements.txt - python3 -m pip -qq install pylint - - - name: Show Python modules / versions - run: python3 -m pip list - - - name: Analyse the code with pylint - run: | - pylint $(git ls-files '*.py') diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..bd62941 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,25 @@ +--- +# based on the default 'pylint.yml' for Actions +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + 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 + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py')