Skip to content

Commit

Permalink
update the yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lwaekfjlk committed Jul 23, 2024
1 parent 8f5ce3a commit 32ada89
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,47 +12,46 @@ on:

jobs:
ruff:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
- name: set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.5.1
- name: analysing the code with ruff
- name: Analyzing the code with ruff
run: |
ruff check .
- name: format the code with ruff
- name: Format the code with ruff
run: |
ruff format .
ruff-pr:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.5.1
- name: analysing the code with ruff
- name: Analyzing the code with ruff
run: |
ruff check .
- name: format the code with ruff
- name: Format the code with ruff
run: |
ruff format .

0 comments on commit 32ada89

Please sign in to comment.