Skip to content

Commit f40a581

Browse files
authored
Merge pull request #137 from simopt-admin/master
Add Ruff CI Workflow to Development
2 parents 4036415 + 0f37aa5 commit f40a581

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/ruff.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
name: "ruff format checking"
1+
name: "Ruff CI"
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [ "master", "development" ]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [ "master" , "development" ]
88

99
jobs:
10-
lint:
10+
linter:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: astral-sh/ruff-action@v2
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Ruff linting check
17+
uses: astral-sh/ruff-action@v2
18+
with:
19+
args: "check --no-fix"
20+
21+
formatter:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
27+
- name: Ruff formatting check
28+
uses: astral-sh/ruff-action@v2
1429
with:
1530
args: "format --check"

0 commit comments

Comments
 (0)