Skip to content

Commit

Permalink
ci: Improve efficiency of ruff workflow (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb authored Feb 6, 2024
1 parent cf7c3de commit 8f5c0ae
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
name: Lint
name: Ruff

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
pull_request:

jobs:
ruff:
name: ruff
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: |
ruff djangocms_versioning tests
- uses: actions/checkout@v4

- run: python -Im pip install --user ruff

- name: Run ruff
run: ruff --output-format=github djangocms_versioning tests

0 comments on commit 8f5c0ae

Please sign in to comment.