Skip to content

trying wiondows container #17

trying wiondows container

trying wiondows container #17

Workflow file for this run

name: Lint Code
on:
push:
branches:
- main
- develop
- feature/linter
pull_request:
branches:
- main
- develop
jobs:
lint:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.4'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Find Changed Files
run: |
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD)
echo "Changed files:"
echo "$CHANGED_FILES"
echo "changed_files=$CHANGED_FILES" >> $GITHUB_ENV
- name: Runing Pylint
run: |
failed=0
for CHANGED_FILES in $(find . -name '*.py'); do
pylint --fail-under=8.5 "$file" || failed=1
done
exit $failed