Skip to content

Commit

Permalink
Add Ruff to CI steps, disabled for now (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j authored Mar 1, 2025
1 parent bae2ff5 commit beee34d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and release

# Temporarily only run outside of master to not have ugly red checkmarks there, needs ruleset changes, #1388 merged and a bunch of code polish to be really useful
on:
push:
branches:
- '*'
- '!master'
pull_request:
branches:
- '*'
- '!master'

jobs:
ruff:
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true

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

- name: Install Python dependencies and setup venv
run: |
python -m pip install --upgrade pip
python -m venv .venv
source .venv/bin/activate
pip install ruff
- name: Run Ruff
# We do not want to completely fail all CI if Ruff has complaints
continue-on-error: true
run: |
source .venv/bin/activate
ruff check --config pyproject.toml .

0 comments on commit beee34d

Please sign in to comment.