Skip to content

Commit e4fc5ae

Browse files
committed
workflow: Add ruff workflow
Adds a ruff compliance workflow which runs on pushes Signed-off-by: Jamie McCrae <[email protected]>
1 parent 780e6b3 commit e4fc5ae

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ruff.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Python ruff compliance check
2+
3+
# Workflow triggers on PRs, pushes to main, once per day at midnight and can be started manually.
4+
on:
5+
# By default, pull_request includes: opened, synchronize, or reopened
6+
pull_request:
7+
branches:
8+
- main
9+
push:
10+
branches:
11+
- main
12+
13+
# Only cancel ongoing runs for PRs
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
ruff_python_check:
20+
runs-on: ubuntu-24.04
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: astral-sh/ruff-action@v3

0 commit comments

Comments
 (0)