Skip to content

Commit

Permalink
Merge pull request #17 from brianhlin/fixup-python-linters
Browse files Browse the repository at this point in the history
Fix broken python file list generation
  • Loading branch information
brianhlin authored Nov 9, 2023
2 parents 537ae9f + 573019e commit 46c2108
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
outputs:
filelist: ${{ steps.python-files.outputs.filelist }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- id: python-files
run: |
echo "filelist=:$(find . -type f -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + | tr '\n' ' ')" >> $GITHUB_OUTPUT
echo "filelist=$(find . -type f -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + | tr '\n' ' ')" >> $GITHUB_OUTPUT
pylint:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -69,5 +69,4 @@ jobs:
env:
PYTHON_FILES: ${{ needs.python-files.outputs.filelist }}
run: | # Change PYTHONPATH for different repo
export PYTHONPATH=$PYTHONPATH:$PWD/src/scripts
flake8 --select F $PYTHON_FILES

0 comments on commit 46c2108

Please sign in to comment.