|
1 | 1 | name: CI |
2 | | - |
3 | 2 | on: |
4 | 3 | push: |
5 | 4 | branches: |
|
17 | 16 |
|
18 | 17 |
|
19 | 18 | jobs: |
20 | | - linters: |
21 | | - name: Linters - ${{ matrix.os.on }} - ${{ matrix.python.version }} |
22 | | - runs-on: ${{ matrix.os.on }} |
| 19 | + pymodbus: |
| 20 | + name: ${{ matrix.os }} - ${{ matrix.python }} |
| 21 | + runs-on: ${{ matrix.os }} |
23 | 22 | timeout-minutes: 10 |
24 | 23 | strategy: |
25 | 24 | fail-fast: false |
26 | 25 | matrix: |
27 | | - os: |
28 | | - - on: ubuntu-latest |
29 | | - # - on: macos-latest |
30 | | - # - on: windows-latest |
31 | | - python: |
32 | | - - version: '3.8' |
33 | | - - version: '3.9' |
34 | | - - version: '3.10' |
35 | | - - version: '3.11' |
36 | | - - version: '3.12' |
| 26 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 27 | + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
| 28 | + include: |
| 29 | + - python: '3.8' |
| 30 | + run_lint: true |
| 31 | + - python: '3.12' |
| 32 | + run_doc: true |
| 33 | + run_lint: true |
37 | 34 | steps: |
38 | | - - uses: actions/checkout@v3 |
39 | | - - uses: actions/setup-python@v4 |
| 35 | + - name: Checkout repo from github |
| 36 | + |
| 37 | + - name: Set up Python ${{ matrix.python }} |
| 38 | + |
40 | 39 | with: |
41 | | - python-version: ${{ matrix.python.version }} |
42 | | - cache: 'pip' |
43 | | - - run: pip install -e ".[all]" |
44 | | - - run: codespell |
45 | | - - run: pylint --recursive=y examples pymodbus test |
46 | | - - run: pre-commit run --all-files |
47 | | - - run: cd doc; ./build_html |
48 | | - - run: mypy pymodbus |
| 40 | + python-version: ${{ matrix.python }} |
49 | 41 |
|
50 | | - integreation_test: |
51 | | - name: pytest - ${{ matrix.os.on }} - ${{ matrix.python.version }} |
52 | | - runs-on: ${{ matrix.os.on }} |
53 | | - timeout-minutes: 20 |
54 | | - strategy: |
55 | | - fail-fast: false |
56 | | - matrix: |
57 | | - os: |
58 | | - - on: ubuntu-latest |
59 | | - - on: macos-latest |
60 | | - - on: windows-latest |
61 | | - python: |
62 | | - - version: '3.8' |
63 | | - - version: '3.9' |
64 | | - - version: '3.10' |
65 | | - - version: '3.11' |
66 | | - - version: '3.12' |
67 | | - steps: |
68 | | - - uses: actions/checkout@v3 |
69 | | - - uses: actions/setup-python@v4 |
70 | | - with: |
71 | | - python-version: ${{ matrix.python.version }} |
72 | | - cache: 'pip' |
73 | | - - run: pip install -e ".[all]" |
74 | 42 |
|
75 | | - - run: pytest -n0 -v --full-trace --timeout=1200 |
76 | 43 |
|
77 | | - analyze: |
78 | | - name: Analyze Python |
79 | | - runs-on: ubuntu-22.04 |
| 44 | + # - run: pip install -e ".[all]" |
| 45 | + # - name: Linter codespell |
| 46 | + # run: codespell |
| 47 | + # - name: Linter pylint |
| 48 | + # run: pylint --recursive=y examples pymodbus test |
| 49 | + # - name: Linter pre-commit |
| 50 | + # run: pre-commit run --all-files |
| 51 | + # - name: mypy |
| 52 | + # run: mypy pymodbus |
| 53 | + # - name: Linter build doc |
| 54 | + # run: cd doc; ./build_html |
80 | 55 |
|
81 | | - steps: |
82 | | - - uses: actions/checkout@v3 |
83 | | - - uses: github/codeql-action/init@v2 |
84 | | - with: |
85 | | - languages: python |
86 | | - - uses: github/codeql-action/autobuild@v2 |
87 | | - - uses: github/codeql-action/analyze@v2 |
| 56 | + #integreation_test: |
| 57 | + # name: pytest - ${{ matrix.os.on }} - ${{ matrix.python.version }} |
| 58 | + # runs-on: ${{ matrix.os.on }} |
| 59 | + # timeout-minutes: 20 |
| 60 | + # strategy: |
| 61 | + # fail-fast: false |
| 62 | + # matrix: |
| 63 | + # os: |
| 64 | + # - on: windows-latest |
| 65 | + # - on: macos-latest |
| 66 | + # - on: ubuntu-latest |
| 67 | + # python: |
| 68 | + # - version: '3.12' |
| 69 | + # - version: '3.11' |
| 70 | + # - version: '3.10' |
| 71 | + # - version: '3.9' |
| 72 | + # - version: '3.8' |
| 73 | + # steps: |
| 74 | + # - uses: actions/[email protected] |
| 75 | + # - uses: actions/setup-python@v4 |
| 76 | + # with: |
| 77 | + # python-version: ${{ matrix.python.version }} |
| 78 | + # - run: pip install -e ".[all]" |
| 79 | + # - run: pytest -n0 -v --full-trace --timeout=1200 |
| 80 | + |
| 81 | + # analyze: |
| 82 | + # name: Analyze Python |
| 83 | + # runs-on: ubuntu-22.04 |
| 84 | + # steps: |
| 85 | + # - uses: actions/checkout@v3 |
| 86 | + # - uses: github/codeql-action/init@v2 |
| 87 | + # with: |
| 88 | + # languages: python |
| 89 | + # - uses: github/codeql-action/autobuild@v2 |
| 90 | + # - uses: github/codeql-action/analyze@v2 |
88 | 91 |
|
89 | 92 | ci_complete: |
90 | 93 | name: ci_complete |
91 | 94 | runs-on: ubuntu-latest |
92 | 95 | needs: |
93 | | - - linters |
94 | | - - analyze |
95 | | - - integreation_test |
| 96 | + # - analyze |
| 97 | + - pymodbus |
| 98 | + # - integreation_test |
96 | 99 | timeout-minutes: 1 |
97 | 100 | steps: |
98 | 101 | - name: Dummy |
|
0 commit comments