Skip to content

Commit

Permalink
GitHub Actions testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvardnmbu committed Feb 5, 2024
1 parent 24ee199 commit 5e1d4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint flake8 numpy torch
pip install pylint flake8
# Run Pylint and Flake8 simultaneously using background tasks and redirect output to files.
- name: Run Pylint and Flake8
run: |
python_files=$(git ls-files '*.py')
if [[ -n "$python_files" ]]; then
echo "$python_files" | xargs pylint > pylint.out &
echo "$python_files" | xargs pylint --disable=E0401 > pylint.out &
flake8 --max-line-length=100 --max-complexity=10 $python_files > flake8.out &
wait
fi
Expand Down

0 comments on commit 5e1d4a0

Please sign in to comment.