|
8 | 8 | - 'pyproject.toml'
|
9 | 9 |
|
10 | 10 | jobs:
|
11 |
| - quality: |
12 |
| - name: Quality |
| 11 | + pylint: |
| 12 | + name: Code check - pylint |
13 | 13 | runs-on: ubuntu-latest
|
| 14 | + # strategy: |
| 15 | + # matrix: |
| 16 | + # python_version: [3.7, 3.8, 3.9, 3.10, 3.11] |
14 | 17 | steps:
|
15 |
| - - uses: .github/actions/install_dependencies@main |
16 |
| - with: |
17 |
| - python_version: 3.11 |
18 |
| - # - uses: actions/checkout@v3 |
19 |
| - # - name: Set up Python 3.11 |
20 |
| - # uses: actions/setup-python@v3 |
21 |
| - # with: |
22 |
| - # python-version: 3.11 |
23 |
| - # - name: Install dependencies |
24 |
| - # run: | |
25 |
| - # python -m pip install --upgrade pip |
26 |
| - # pip install -r ci_requirements.txt |
| 18 | + - uses: actions/checkout@v3 |
| 19 | + - uses: ./.github/actions/install_dependencies |
27 | 20 | - name: Run pylint
|
28 | 21 | run: |
|
29 | 22 | pylint --output-format=colorized $(git ls-files '*.py')
|
| 23 | + mypy: |
| 24 | + name: Code check - mypy |
| 25 | + runs-on: ubuntu-latest |
| 26 | + strategy: |
| 27 | + matrix: |
| 28 | + python_version: [3.7, 3.8, 3.9, 3.10, 3.11] |
| 29 | + steps: |
| 30 | + - uses: actions/checkout@v3 |
| 31 | + - uses: ./.github/actions/install_dependencies |
| 32 | + with: |
| 33 | + python_version: ${{ matrix.python_version }} |
30 | 34 | - name: Run mypy
|
31 | 35 | run: |
|
32 | 36 | mypy --config-file pyproject.toml .
|
| 37 | + isort: |
| 38 | + name: Code check - isort |
| 39 | + runs-on: ubuntu-latest |
| 40 | + strategy: |
| 41 | + matrix: |
| 42 | + python_version: [3.7, 3.8, 3.9, 3.10, 3.11] |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v3 |
| 45 | + - uses: ./.github/actions/install_dependencies |
| 46 | + with: |
| 47 | + python_version: ${{ matrix.python_version }} |
33 | 48 | - name: Run isort
|
34 | 49 | run: |
|
35 | 50 | isort --settings-file pyproject.toml --check --diff --color .
|
| 51 | + black: |
| 52 | + name: Code check - black |
| 53 | + runs-on: ubuntu-latest |
| 54 | + strategy: |
| 55 | + matrix: |
| 56 | + python_version: [3.7, 3.8, 3.9, 3.10, 3.11] |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v3 |
| 59 | + - uses: ./.github/actions/install_dependencies |
| 60 | + with: |
| 61 | + python_version: ${{ matrix.python_version }} |
36 | 62 | - name: Run black
|
37 | 63 | run: |
|
38 | 64 | black --config pyproject.toml --check --diff --color .
|
0 commit comments