1- name : Check Commit
1+ name : Tests
2+
3+ permissions :
4+ contents : read
5+
26on :
37 push :
48 branches :
711 merge_group :
812
913jobs :
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 : Set up Python
25- uses : actions/setup-python@v5
26- with :
27- python-version : ${{ matrix.python-version }}
28- - name : Install poetry
29- run : |
30- pip install poetry
31- poetry --version
32- - name : Install dependencies and library
33- run : poetry install
34- - name : Check format
35- run : poetry run ruff format --check
36-
37- typing :
38- runs-on : ubuntu-latest
39- strategy :
40- matrix :
41- lib :
42- - scaleway-core
43- - scaleway
44- - scaleway-async
45- defaults :
46- run :
47- working-directory : ${{ matrix.lib }}
48- steps :
49- - uses : actions/checkout@v4
50- - name : Set up Python
51- uses : actions/setup-python@v5
52- with :
53- python-version : ${{ matrix.python-version }}
54- - name : Install poetry
55- run : |
56- pip install poetry
57- poetry --version
58- - name : Install dependencies and library
59- run : poetry install
60- - name : Check typing
61- run : poetry run mypy --install-types --non-interactive --strict --no-warn-unused-ignores $(echo "${{ matrix.lib }}" | tr "-" "_")
62-
63- linting :
64- runs-on : ubuntu-latest
65- strategy :
66- matrix :
67- lib :
68- - scaleway-core
69- - scaleway
70- - scaleway-async
71- defaults :
72- run :
73- working-directory : ${{ matrix.lib }}
74- steps :
75- - uses : actions/checkout@v4
76- - name : Set up Python
77- uses : actions/setup-python@v5
78- with :
79- python-version : ${{ matrix.python-version }}
80- - name : Install poetry
81- run : |
82- pip install poetry
83- poetry --version
84- - name : Install dependencies and library
85- run : poetry install
86- # We ignore the following rules for now:
87- # E721 (https://docs.astral.sh/ruff/rules/type-comparison)
88- # F541 (https://docs.astral.sh/ruff/rules/f-string-missing-placeholders)
89- - name : Check linting
90- run : poetry run ruff check . --ignore E721 --ignore F541
91-
9214 tests :
9315 runs-on : ubuntu-latest
9416 strategy :
@@ -97,19 +19,19 @@ jobs:
9719 - scaleway-core
9820 - scaleway
9921 - scaleway-async
22+ python-version : [ '3.10' ,'3.11', '3.12', '3.13' ]
10023 defaults :
10124 run :
10225 working-directory : ${{ matrix.lib }}
10326 steps :
10427 - uses : actions/checkout@v4
28+ - name : Install poetry
29+ run : pipx install poetry
10530 - name : Set up Python
10631 uses : actions/setup-python@v5
10732 with :
10833 python-version : ${{ matrix.python-version }}
109- - name : Install poetry
110- run : |
111- pip install poetry
112- poetry --version
34+ cache : " poetry"
11335 - name : Install dependencies and library
11436 run : poetry install
11537 - name : Run tests
0 commit comments