mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-11 07:06:16 +01:00
Merge pull request #1214 from dmach/linters-print-pylint-logs
GHA: Print pylint logs before diffing them
This commit is contained in:
commit
0e6102ce1f
4
.github/workflows/build-install.yaml
vendored
4
.github/workflows/build-install.yaml
vendored
@ -10,6 +10,10 @@ on:
|
|||||||
- 'README.md'
|
- 'README.md'
|
||||||
- 'doc/**'
|
- 'doc/**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rpmbuild:
|
rpmbuild:
|
||||||
name: 'rpmbuild test'
|
name: 'rpmbuild test'
|
||||||
|
4
.github/workflows/codeql.yml
vendored
4
.github/workflows/codeql.yml
vendored
@ -8,6 +8,10 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "13 12 * * 6"
|
- cron: "13 12 * * 6"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
|
29
.github/workflows/linters.yaml
vendored
29
.github/workflows/linters.yaml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
- '.github/**'
|
- '.github/**'
|
||||||
- '**.py'
|
- '**.py'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mypy:
|
mypy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -64,11 +68,28 @@ jobs:
|
|||||||
repository: ${{ matrix.plugin_repository }}
|
repository: ${{ matrix.plugin_repository }}
|
||||||
path: plugin
|
path: plugin
|
||||||
|
|
||||||
|
- name: 'Run pylint with osc from master'
|
||||||
|
run: |
|
||||||
|
cd plugin
|
||||||
|
find . -type f -name "*.py" | sort | PYTHONPATH="../osc-master" xargs pylint --errors-only >> pylint-osc-master.log || :
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo ">>>>> pylint-osc-master.log <<<<<"
|
||||||
|
cat pylint-osc-master.log
|
||||||
|
|
||||||
|
- name: 'Run pylint with osc from pull-request'
|
||||||
|
run: |
|
||||||
|
cd plugin
|
||||||
|
find . -type f -name "*.py" | sort | PYTHONPATH="../osc-pr" xargs pylint --errors-only >> pylint-osc-pr.log || :
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo ">>>>> pylint-osc-pr.log <<<<<"
|
||||||
|
cat pylint-osc-pr.log
|
||||||
|
|
||||||
- name: 'Diff pylint runs'
|
- name: 'Diff pylint runs'
|
||||||
run: |
|
run: |
|
||||||
cd plugin
|
cd plugin
|
||||||
find -maxdepth 2 -name __init__.py | while read i; do dirname $i; done | sort > .pylint-args
|
|
||||||
find -maxdepth 1 -name '*.py' | sort >> .pylint-args
|
echo
|
||||||
PYTHONPATH="../osc-master" pylint --errors-only $(cat .pylint-args) | sort > pylint-osc-master.log || :
|
echo ">>>>> diff <<<<<"
|
||||||
PYTHONPATH="../osc-pr" pylint --errors-only $(cat .pylint-args) | sort > pylint-osc-pr.log || :
|
|
||||||
diff -u pylint-osc-master.log pylint-osc-pr.log
|
diff -u pylint-osc-master.log pylint-osc-pr.log
|
||||||
|
4
.github/workflows/tests.yaml
vendored
4
.github/workflows/tests.yaml
vendored
@ -9,6 +9,10 @@ on:
|
|||||||
- 'behave/**'
|
- 'behave/**'
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit:
|
unit:
|
||||||
name: "unit"
|
name: "unit"
|
||||||
|
Loading…
Reference in New Issue
Block a user