|
8 | 8 | - 'pyproject.toml'
|
9 | 9 |
|
10 | 10 | jobs:
|
11 |
| - quality: |
12 |
| - name: Quality |
| 11 | + pylint: |
| 12 | + name: Python ${{ matrix.python_version }} - pylint check |
13 | 13 | runs-on: ubuntu-latest
|
| 14 | + strategy: |
| 15 | + fail-fast: false |
| 16 | + matrix: |
| 17 | + python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"] |
14 | 18 | steps:
|
15 |
| - - uses: .github/actions/install_dependencies@main |
| 19 | + - uses: actions/checkout@v3 |
| 20 | + - uses: ./.github/actions/install_dependencies |
16 | 21 | 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 |
| 22 | + python_version: ${{ matrix.python_version }} |
27 | 23 | - name: Run pylint
|
28 | 24 | run: |
|
29 | 25 | pylint --output-format=colorized $(git ls-files '*.py')
|
| 26 | + mypy: |
| 27 | + name: Python ${{ matrix.python_version }} - mypy check |
| 28 | + runs-on: ubuntu-latest |
| 29 | + strategy: |
| 30 | + fail-fast: false |
| 31 | + matrix: |
| 32 | + python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v3 |
| 35 | + - uses: ./.github/actions/install_dependencies |
| 36 | + with: |
| 37 | + python_version: ${{ matrix.python_version }} |
30 | 38 | - name: Run mypy
|
31 | 39 | run: |
|
32 | 40 | mypy --config-file pyproject.toml .
|
| 41 | + isort: |
| 42 | + name: Python ${{ matrix.python_version }} - isort check |
| 43 | + runs-on: ubuntu-latest |
| 44 | + strategy: |
| 45 | + fail-fast: false |
| 46 | + matrix: |
| 47 | + python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@v3 |
| 50 | + - uses: ./.github/actions/install_dependencies |
| 51 | + with: |
| 52 | + python_version: ${{ matrix.python_version }} |
33 | 53 | - name: Run isort
|
34 | 54 | run: |
|
35 | 55 | isort --settings-file pyproject.toml --check --diff --color .
|
| 56 | + black: |
| 57 | + name: Python ${{ matrix.python_version }} - black check |
| 58 | + runs-on: ubuntu-latest |
| 59 | + strategy: |
| 60 | + fail-fast: false |
| 61 | + matrix: |
| 62 | + python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v3 |
| 65 | + - uses: ./.github/actions/install_dependencies |
| 66 | + with: |
| 67 | + python_version: ${{ matrix.python_version }} |
36 | 68 | - name: Run black
|
37 | 69 | run: |
|
38 | 70 | black --config pyproject.toml --check --diff --color .
|
0 commit comments