Skip to content

Commit 8f5c0ae

Browse files
authored
ci: Improve efficiency of ruff workflow (#378)
1 parent cf7c3de commit 8f5c0ae

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
name: Lint
1+
name: Ruff
22

3-
on: [push, pull_request]
4-
5-
concurrency:
6-
group: ${{ github.workflow }}-${{ github.ref }}
7-
cancel-in-progress: true
3+
on:
4+
push:
5+
pull_request:
86

97
jobs:
108
ruff:
11-
name: ruff
129
runs-on: ubuntu-latest
10+
1311
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
- name: Set up Python
17-
uses: actions/setup-python@v5
18-
with:
19-
python-version: "3.11"
20-
cache: 'pip'
21-
- run: |
22-
python -m pip install --upgrade pip
23-
pip install ruff
24-
- name: Run Ruff
25-
run: |
26-
ruff djangocms_versioning tests
12+
- uses: actions/checkout@v4
13+
14+
- run: python -Im pip install --user ruff
15+
16+
- name: Run ruff
17+
run: ruff --output-format=github djangocms_versioning tests

0 commit comments

Comments
 (0)