forked from rpm-software-management/mock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Python linting differential scan | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
container-python-lint-job: | ||
runs-on: ubuntu-latest | ||
container: registry.fedoraproject.org/fedora:37 | ||
steps: | ||
- name: install the needed Fedora packages | ||
run: dnf install -y csdiff dnf-plugins-core pylint | ||
|
||
- name: enable external Copr repo with diff linter | ||
run: dnf -y copr enable @copr/vcs-diff-lint | ||
|
||
- name: enable external Copr repo with diff linter | ||
run: dnf -y install vcs-diff-lint | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: avoid Git permissions warnings, we are read only | ||
run: git config --global --add safe.directory '*' | ||
|
||
- name: get the original code so we can diff | ||
run: git fetch origin main:main | ||
|
||
- name: run the diff linter | ||
run: cd mock && vcs-diff-lint --print-fixed-errors |