diff --git a/.github/workflows/python-linting.yml b/.github/workflows/python-linting.yml index 16eeb62453..1647b56c03 100644 --- a/.github/workflows/python-linting.yml +++ b/.github/workflows/python-linting.yml @@ -7,9 +7,20 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 - - uses: astral-sh/ruff-action@v1 + - name: Set up Python + uses: actions/setup-python@v4 with: - args: "check ./GrpcInterface --fix" + python-version: '3.8' # Specify Python version + + - name: Install Ruff + run: | + python -m pip install --upgrade pip + pip install ruff + + - name: Run Ruff Fix + run: | + ruff check ./GrpcInterface --fix + - uses: peter-evans/create-pull-request@v7 with: token: ${{ secrets.GITHUB_TOKEN }}