1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-11 07:06:16 +01:00

Merge pull request #1284 from dmach/gha-linters-sle-prjmgr-tools

GHA: Add sle-prjmgr-tools to the pylint_plugins job
This commit is contained in:
Daniel Mach 2023-03-21 07:41:11 +01:00 committed by GitHub
commit 370b0d225d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,12 +62,13 @@ jobs:
- openSUSE/osc-plugin-install
- openSUSE/osc-plugin-overview
- openSUSE/osc-plugin-qam
- openSUSE/sle-prjmgr-tools
steps:
- name: 'Install packages'
run: |
sudo apt-get -y update
sudo apt-get -y --no-install-recommends install diffutils pylint
sudo apt-get -y --no-install-recommends install diffutils pylint python3-pip
- uses: actions/checkout@v3
with:
@ -83,6 +84,16 @@ jobs:
repository: ${{ matrix.plugin_repository }}
path: plugin
- name: 'Install dependencies from pip'
run: |
cd plugin
echo "Installing pycurl from a package to avoid installing many build deps and compilation..."
sudo apt-get -y --no-install-recommends install python3-pycurl
find -name 'setup.py' | while read i; do cd $(dirname $i); pip3 install -e ".[extras_require]" || : ; done
find -name 'setup.py' | while read i; do cd $(dirname $i); pip3 install -e ".[lint]" || : ; done
find -name 'setup.py' | while read i; do cd $(dirname $i); pip3 install -e ".[test]" || : ; done
find -name 'requirements*.txt' | while read i; do pip3 install -r "$i" || : ; done
- name: 'Run pylint with osc from master'
run: |
cd plugin