New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pylint action is broken #636
Comments
I've noticed 2 core problems with the current workflow script.
Here is the corrected code that works on my current workflow, this is based on the above pull request, with some additional fixes. name: Pylint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Analysing the code with pylint
run: |
python -m pylint --fail-under=10 `find -regextype egrep -regex '(.*.py)$'` |
tee pylint.txt
- name: Upload pylint.txt as artifact
uses: actions/upload-artifact@v2
with:
name: pylint report
path: pylint.txt |
This issue has become stale and will be closed automatically within a period of time. Sorry about that. |
not stale: just merge the pull request (#637) already |
Addresses issues in actions/starter-workflows#636
Based on jDavidnet's version: actions/starter-workflows#636 (comment)
Absolutely unbelievable that a core function is broken and unfixed. |
Apply the solution from actions/starter-workflows#636
I've copied this code / the code from the PR |
- attempts fix from actions/starter-workflows#636
* Create pylint.yml * push * test change * Update pylint.yml - attempts fix from actions/starter-workflows#636 * derp * fix
I've had success running the following: run: |
pylint $(git ls-files '*.py') |
run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment)
* Added simple log in form, added material ui * Added Dashboard and stored user email in the session * Added logic to restrict based feature tagging on log in * added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Rearranged README badges Co-authored-by: Emily Tracey <etracey@ncsu.edu>
commit 66d5c82 Author: Leila Moran <lmmoran@ncsu.edu> Date: Mon Oct 25 02:40:12 2021 -0400 group25 workflows (#65) * Added simple log in form, added material ui * Added Dashboard and stored user email in the session * Added logic to restrict based feature tagging on log in * added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Rearranged README badges Co-authored-by: Emily Tracey <etracey@ncsu.edu>
* added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Revert "group25 workflows" * Added post to Service.js and connected login form (incomplete) * Added appropriate error messages and display for errors * Added Sign up form * Added error handling and redirecting for login and sign up * fix to react compile warning * Dashboard and tag edits are now limited by user * New tags can now be saved in the database * Adding Product Controller and Test Cases * Adding more user auth and product auth test cases * Changing gitignore * Fixing test cases for user-auth class * Removing test cases which are not used * Commented out unused tests, added pylint comments * Restored and commented out unused tests * Added pylint skip comments Co-authored-by: Leila Moran <lmmoran@ncsu.edu> Co-authored-by: Emily Tracey <etracey@ncsu.edu> Co-authored-by: peeyush10234 <ptaneja@ncsu.edu>
* added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Revert "group25 workflows" * Added post to Service.js and connected login form (incomplete) * Added appropriate error messages and display for errors * Added Sign up form * Added error handling and redirecting for login and sign up * fix to react compile warning * Dashboard and tag edits are now limited by user * New tags can now be saved in the database * Adding Product Controller and Test Cases * Adding more user auth and product auth test cases * Changing gitignore * Fixing test cases for user-auth class * Removing test cases which are not used * Commented out unused tests, added pylint comments * Restored and commented out unused tests * Added pylint skip comments * Removing merging backend and backend-new into a single directory * Increasing Pylint Score * Increasing Pylint score Co-authored-by: Leila Moran <lmmoran@ncsu.edu> Co-authored-by: Emily Tracey <etracey@ncsu.edu> Co-authored-by: peeyush10234 <ptaneja@ncsu.edu>
* added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Revert "group25 workflows" * Added post to Service.js and connected login form (incomplete) * Added appropriate error messages and display for errors * Added Sign up form * Added error handling and redirecting for login and sign up * fix to react compile warning * Dashboard and tag edits are now limited by user * New tags can now be saved in the database * Adding Product Controller and Test Cases * Adding more user auth and product auth test cases * Changing gitignore * Fixing test cases for user-auth class * Removing test cases which are not used * Commented out unused tests, added pylint comments * Restored and commented out unused tests * Added pylint skip comments * Removing merging backend and backend-new into a single directory * Increasing Pylint Score * Increasing Pylint score * Restored deleted backend files * Removing backend-new and merging it with backend dir Co-authored-by: Leila Moran <lmmoran@ncsu.edu> Co-authored-by: Emily Tracey <etracey@ncsu.edu> Co-authored-by: peeyush10234 <ptaneja@ncsu.edu>
for more information: actions/starter-workflows#636
This issue has become stale and will be closed automatically within a period of time. Sorry about that. |
Hi |
Fix broken pylint in GitHub Actions, linked issue : actions/starter-workflows#636
ref: #636. `pylint` command does not work I've had success running the modified command [here](https://github.com/thecesrom/incendium/blob/project/.github/workflows/pylint.yml). Co-authored-by: Josh Gross <joshmgross@github.com>
With #1108 merged, this can be closed. |
* Added simple log in form, added material ui * Added Dashboard and stored user email in the session * Added logic to restrict based feature tagging on log in * added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Rearranged README badges Co-authored-by: Emily Tracey <etracey@ncsu.edu>
* added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Revert "group25 workflows" * Added post to Service.js and connected login form (incomplete) * Added appropriate error messages and display for errors * Added Sign up form * Added error handling and redirecting for login and sign up * fix to react compile warning * Dashboard and tag edits are now limited by user * New tags can now be saved in the database * Adding Product Controller and Test Cases * Adding more user auth and product auth test cases * Changing gitignore * Fixing test cases for user-auth class * Removing test cases which are not used * Commented out unused tests, added pylint comments * Restored and commented out unused tests * Added pylint skip comments Co-authored-by: Leila Moran <lmmoran@ncsu.edu> Co-authored-by: Emily Tracey <etracey@ncsu.edu> Co-authored-by: peeyush10234 <ptaneja@ncsu.edu>
* added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Revert "group25 workflows" * Added post to Service.js and connected login form (incomplete) * Added appropriate error messages and display for errors * Added Sign up form * Added error handling and redirecting for login and sign up * fix to react compile warning * Dashboard and tag edits are now limited by user * New tags can now be saved in the database * Adding Product Controller and Test Cases * Adding more user auth and product auth test cases * Changing gitignore * Fixing test cases for user-auth class * Removing test cases which are not used * Commented out unused tests, added pylint comments * Restored and commented out unused tests * Added pylint skip comments * Removing merging backend and backend-new into a single directory * Increasing Pylint Score * Increasing Pylint score Co-authored-by: Leila Moran <lmmoran@ncsu.edu> Co-authored-by: Emily Tracey <etracey@ncsu.edu> Co-authored-by: peeyush10234 <ptaneja@ncsu.edu>
…0-Group-25#156) * added pylint workflow w/artifacts run: pylint --fail-under=1 $(find . -name "*.py" | xargs) note: set the failure threshold as indicated above actions/starter-workflows#636 (comment) * Added CodeQL & Pylint badges, edits * Added CodeQL badge * Added Pylint badge * Minor edits: updated git clone steps * Lowered pylint failure theshold * Update and rename build.yml to coveralls.yml * Added test files to pylint.yml * Updated py files to improve pylint score * Fixed error in coveralls.yml * Removed individual tests in pylint.yml * Added pylint labels * Added test workflow * Update and rename nodejsTest.yml to nodejs.yml * Update nodejs.yml * Update nodejs.yml * Added workflow build badge to README * Added yet another workflow All for the sake of a test badge. * Added test badge * Revert "group25 workflows" * Added post to Service.js and connected login form (incomplete) * Added appropriate error messages and display for errors * Added Sign up form * Added error handling and redirecting for login and sign up * fix to react compile warning * Dashboard and tag edits are now limited by user * New tags can now be saved in the database * Adding Product Controller and Test Cases * Adding more user auth and product auth test cases * Changing gitignore * Fixing test cases for user-auth class * Removing test cases which are not used * Commented out unused tests, added pylint comments * Restored and commented out unused tests * Added pylint skip comments * Removing merging backend and backend-new into a single directory * Increasing Pylint Score * Increasing Pylint score * Restored deleted backend files * Removing backend-new and merging it with backend dir Co-authored-by: Leila Moran <lmmoran@ncsu.edu> Co-authored-by: Emily Tracey <etracey@ncsu.edu> Co-authored-by: peeyush10234 <ptaneja@ncsu.edu>
In https://github.com/actions/starter-workflows/blob/main/ci/pylint.yml, the last line:
pylint `ls -R|grep .py$|xargs`
does not work as intended.
ls -R | grep .py$
lists all files with the.py
ending. Only the files not the path to them. So it will find.py
files in a subdirectory, and pass them to pylint which is then unable to find them on the top level. Causing errors like this:I'll see if I can fix this and open a pull request if I can find a good fix.
The text was updated successfully, but these errors were encountered: