Skip to content

Commit f3e81f2

Browse files
committed
Split format in a separate workflow
1 parent 7743c2e commit f3e81f2

File tree

2 files changed

+33
-26
lines changed

2 files changed

+33
-26
lines changed

.github/workflows/checks.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,6 @@ on:
77
merge_group:
88

99
jobs:
10-
format:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
lib:
15-
- scaleway-core
16-
- scaleway
17-
- scaleway-async
18-
python-version: ['3.10' ,'3.11', '3.12', '3.13']
19-
defaults:
20-
run:
21-
working-directory: ${{ matrix.lib }}
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Install poetry
25-
run: pipx install poetry
26-
- name: Set up Python
27-
uses: actions/setup-python@v5
28-
with:
29-
python-version: '3.13'
30-
cache: "poetry"
31-
- name: Install dependencies and library
32-
run: poetry install
33-
- name: Check format
34-
run: poetry run ruff format --check
35-
3610
typing:
3711
runs-on: ubuntu-latest
3812
strategy:

.github/workflows/format.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: format
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
merge_group:
8+
9+
jobs:
10+
format:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
lib:
15+
- scaleway-core
16+
- scaleway
17+
- scaleway-async
18+
defaults:
19+
run:
20+
working-directory: ${{ matrix.lib }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Install poetry
24+
run: pipx install poetry
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.13'
29+
cache: "poetry"
30+
- name: Install dependencies and library
31+
run: poetry install
32+
- name: Check format
33+
run: poetry run ruff format --check

0 commit comments

Comments
 (0)