Skip to content

Commit

Permalink
[PATCH] CI fix for Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Diapolo10 committed Oct 24, 2024
1 parent 6402825 commit 66e655c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- name: Install Poetry
uses: Gr1N/setup-poetry@v9
Expand All @@ -37,13 +37,14 @@ jobs:
poetry install --only linters
- name: Lint with Ruff
id: lint
run: |
poetry run ruff check --fix .
echo "RUFF_SUCCESS=$([ $? -eq 0 ])" >> $GITHUB_ENV
echo "RUFF_SUCCESS=$([ $? -eq 0 ])" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
if: ${{ !env.RUFF_SUCCESS }}
if: ${{ !steps.lint.outputs.RUFF_SUCCESS }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Format Python code with Ruff push"
Expand Down

0 comments on commit 66e655c

Please sign in to comment.