|
1 | | -name: Check Commit |
| 1 | +name: Tests |
| 2 | + |
| 3 | +permissions: |
| 4 | + contents: read |
| 5 | + |
2 | 6 | on: |
3 | 7 | push: |
4 | 8 | branches: |
|
7 | 11 | merge_group: |
8 | 12 |
|
9 | 13 | 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: ${{ matrix.python-version }} |
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 | | - |
36 | | - typing: |
37 | | - runs-on: ubuntu-latest |
38 | | - strategy: |
39 | | - matrix: |
40 | | - lib: |
41 | | - - scaleway-core |
42 | | - - scaleway |
43 | | - - scaleway-async |
44 | | - defaults: |
45 | | - run: |
46 | | - working-directory: ${{ matrix.lib }} |
47 | | - steps: |
48 | | - - uses: actions/checkout@v4 |
49 | | - - name: Install poetry |
50 | | - run: pipx install poetry |
51 | | - - name: Set up Python |
52 | | - uses: actions/setup-python@v5 |
53 | | - with: |
54 | | - python-version: ${{ matrix.python-version }} |
55 | | - cache: "poetry" |
56 | | - - name: Install dependencies and library |
57 | | - run: poetry install |
58 | | - - name: Check typing |
59 | | - run: poetry run mypy --install-types --non-interactive --strict --no-warn-unused-ignores $(echo "${{ matrix.lib }}" | tr "-" "_") |
60 | | - |
61 | | - linting: |
62 | | - runs-on: ubuntu-latest |
63 | | - strategy: |
64 | | - matrix: |
65 | | - lib: |
66 | | - - scaleway-core |
67 | | - - scaleway |
68 | | - - scaleway-async |
69 | | - defaults: |
70 | | - run: |
71 | | - working-directory: ${{ matrix.lib }} |
72 | | - steps: |
73 | | - - uses: actions/checkout@v4 |
74 | | - - name: Install poetry |
75 | | - run: pipx install poetry |
76 | | - - name: Set up Python |
77 | | - uses: actions/setup-python@v5 |
78 | | - with: |
79 | | - python-version: ${{ matrix.python-version }} |
80 | | - cache: "poetry" |
81 | | - - name: Install dependencies and library |
82 | | - run: poetry install |
83 | | - # We ignore the following rules for now: |
84 | | - # E721 (https://docs.astral.sh/ruff/rules/type-comparison) |
85 | | - # F541 (https://docs.astral.sh/ruff/rules/f-string-missing-placeholders) |
86 | | - - name: Check linting |
87 | | - run: poetry run ruff check . --ignore E721 --ignore F541 |
88 | | - |
89 | 14 | tests: |
90 | 15 | runs-on: ubuntu-latest |
91 | 16 | strategy: |
|
94 | 19 | - scaleway-core |
95 | 20 | - scaleway |
96 | 21 | - scaleway-async |
| 22 | + python-version: [ '3.10' ,'3.11', '3.12', '3.13' ] |
97 | 23 | defaults: |
98 | 24 | run: |
99 | 25 | working-directory: ${{ matrix.lib }} |
|
0 commit comments