Skip to content

Commit

Permalink
enable github action for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Sep 29, 2024
1 parent 958b015 commit 8929aec
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code quality
on:
push:
pull_request:

jobs:

run:
runs-on: ubuntu-latest

steps:

- name: Acquire sources
uses: actions/checkout@v4.1.1

- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: "3.13"
architecture: x64

- name: Apply caching of dependencies
uses: actions/cache@v4.0.0
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('**/requirements-*.txt') }}

- name: Install dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt dev-requirements.txt
- name: Run ruff
run: |
ruff format --diff .
ruff check --diff .

0 comments on commit 8929aec

Please sign in to comment.