Skip to content

Commit 1993ee9

Browse files
committed
Fix ruff version to 0.11.4 and move linting and formatting checks to install-and-test action
1 parent 0c0cd3a commit 1993ee9

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

.github/workflows/actions.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
- name: Test with pytest
3939
run: |
4040
python -m pytest -sv tests
41+
- name: Ruff linting
42+
run: |
43+
ruff check .
44+
- name: Ruff formatting
45+
run: |
46+
ruff format . --check --verbose
4147
build-and-install:
4248
runs-on: ubuntu-latest
4349
steps:
@@ -55,21 +61,4 @@ jobs:
5561
python -m build --sdist
5662
- name: Install the package
5763
run: |
58-
uv pip install dist/*.tar.gz
59-
ruff-linting:
60-
runs-on: ubuntu-latest
61-
steps:
62-
- uses: actions/checkout@v4
63-
- uses: chartboost/ruff-action@v1
64-
with:
65-
args: --version
66-
- uses: chartboost/ruff-action@v1
67-
with:
68-
args: "check ."
69-
ruff-formatting:
70-
runs-on: ubuntu-latest
71-
steps:
72-
- uses: actions/checkout@v4
73-
- uses: chartboost/ruff-action@v1
74-
with:
75-
args: "format . --check --verbose"
64+
uv pip install dist/*.tar.gz

0 commit comments

Comments
 (0)