Skip to content

Commit 5421a63

Browse files
committed
Add ruff check Github Action workflow
1 parent a032506 commit 5421a63

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ruff-check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# run ruff check on library source
2+
# TODO: extend to tests, examples, benchmarks
3+
4+
name: ruff-check
5+
6+
on: [push, pull_request]
7+
8+
jobs:
9+
ruff-check-linux:
10+
# ruff *shouldn't* be sensitive to platform
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout python-control
15+
uses: actions/checkout@v3
16+
17+
- name: Setup environment
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.13 # todo: latest?
21+
22+
- name: Install ruff
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install ruff
26+
27+
- name: Run ruff check
28+
run: |
29+
ruff check

0 commit comments

Comments
 (0)