github/workflows: Split ruff into its own action.

This matches the main repo, and conceputually ruff is not strictly doing
"code formatting".

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/706/head
Jim Mussared 2023-07-25 12:53:15 +10:00 zatwierdzone przez Damien George
rodzic efa0402846
commit ce3f282967
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -7,8 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff --format=github .
- uses: actions/setup-python@v4
- name: Install packages
run: source tools/ci.sh && ci_code_formatting_setup

10
.github/workflows/ruff.yml vendored 100644
Wyświetl plik

@ -0,0 +1,10 @@
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python code lint with ruff
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff --format=github .