Skip to content

Commit b01db16

Browse files
committed
update build configuration
1 parent f9baead commit b01db16

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,31 @@ name: Build and validate generated code
22

33
on:
44
workflow_dispatch:
5-
workflow_call:
65
push:
76
branches: [ main ]
87
pull_request:
98
branches: [ main, dev ]
10-
11-
permissions:
12-
contents: read
9+
workflow_call:
1310

1411
jobs:
15-
validate:
16-
name: Validate code accuracy
12+
build:
1713
runs-on: ubuntu-latest
14+
timeout-minutes: 40
15+
strategy:
16+
max-parallel: 5
17+
matrix:
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1819
steps:
19-
- uses: actions/checkout@v4
20-
- name: Set up Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: '3.12'
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements-dev.txt
28-
- name: Lint with Pylint
29-
run: pylint msgraph --disable=W --rcfile=.pylintrc
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r requirements-dev.txt
30+
31+
- name: Lint with Pylint
32+
run: pylint msgraph --disable=W --rcfile=.pylintrc

0 commit comments

Comments
 (0)