|
9 | 9 | - release_*
|
10 | 10 |
|
11 | 11 | jobs:
|
12 |
| - bandit: |
13 |
| - name: Bandit analyzer for Python ${{ matrix.os.python }} on |
14 |
| - ${{ matrix.os.name }}-${{ matrix.os.version }} |
| 12 | + flake8: |
| 13 | + name: Flake8 for Python ${{ matrix.python-version }} |
15 | 14 | runs-on: ubuntu-latest
|
16 | 15 |
|
17 | 16 | strategy:
|
18 |
| - fail-fast: false |
19 | 17 | matrix:
|
20 |
| - os: |
21 |
| - - name: centos |
22 |
| - version: 7 |
23 |
| - python: 3 |
24 |
| - engine: docker |
25 |
| - |
26 |
| - - name: fedora |
27 |
| - version: 34 |
28 |
| - python: 3 |
29 |
| - engine: docker |
| 18 | + python-version: [ "3.8" ] |
30 | 19 |
|
31 | 20 | steps:
|
32 |
| - - uses: actions/checkout@v1 |
33 |
| - |
34 |
| - - run: ./test.sh |
35 |
| - env: |
36 |
| - OS: ${{ matrix.os.name }} |
37 |
| - OS_VERSION: ${{ matrix.os.version }} |
38 |
| - PYTHON_VERSION: ${{ matrix.os.python }} |
39 |
| - ENGINE: ${{ matrix.os.engine }} |
40 |
| - ACTION: bandit |
41 |
| - |
42 |
| - flake8: |
43 |
| - name: Flake8 for Python 3 |
44 |
| - runs-on: ubuntu-latest |
45 |
| - |
46 |
| - steps: |
47 |
| - - name: Check out repo |
48 |
| - uses: actions/checkout@v2 |
| 21 | + - uses: actions/checkout@v3 |
| 22 | + - uses: actions/setup-python@v4 |
| 23 | + with: |
| 24 | + python-version: ${{ matrix.python-version }} |
| 25 | + - name: Install dependencies |
| 26 | + run: | |
| 27 | + python -m pip install --upgrade pip setuptools tox |
49 | 28 |
|
50 |
| - - name: Run flake8 for Python 3 |
51 |
| - uses: containerbuildsystem/actions/flake8@master |
| 29 | + - name: Run flake8 on python${{ matrix.python-version }} |
| 30 | + run: python -m tox -e flake8 |
52 | 31 |
|
53 |
| - # markdownlint: |
54 |
| - # name: Markdownlint |
55 |
| - # runs-on: ubuntu-latest |
| 32 | + markdownlint: |
| 33 | + name: Markdownlint |
| 34 | + runs-on: ubuntu-latest |
56 | 35 |
|
57 |
| - # steps: |
58 |
| - # - name: Check out repo |
59 |
| - # uses: actions/checkout@v2 |
| 36 | + steps: |
| 37 | + - name: Check out repo |
| 38 | + uses: actions/checkout@v2 |
60 | 39 |
|
61 |
| - # - name: Run markdownlint |
62 |
| - # uses: containerbuildsystem/actions/markdownlint@master |
| 40 | + - name: Run markdownlint |
| 41 | + uses: containerbuildsystem/actions/markdownlint@master |
63 | 42 |
|
64 | 43 | pylint:
|
65 |
| - name: Pylint analyzer for Python ${{ matrix.os.python }} |
| 44 | + name: Pylint analyzer for Python ${{ matrix.python-version }} |
66 | 45 | runs-on: ubuntu-latest
|
67 | 46 |
|
68 | 47 | strategy:
|
69 | 48 | matrix:
|
70 |
| - os: |
71 |
| - - name: fedora |
72 |
| - version: 34 |
73 |
| - python: 3 |
74 |
| - engine: docker |
| 49 | + python-version: [ "3.8" ] |
75 | 50 |
|
76 | 51 | steps:
|
77 |
| - - uses: actions/checkout@v2 |
| 52 | + - uses: actions/checkout@v3 |
| 53 | + - uses: actions/setup-python@v4 |
| 54 | + with: |
| 55 | + python-version: ${{ matrix.python-version }} |
| 56 | + - name: Install dependencies |
| 57 | + run: | |
| 58 | + python -m pip install --upgrade pip setuptools tox |
78 | 59 |
|
79 |
| - - run: ./test.sh |
80 |
| - env: |
81 |
| - OS: ${{ matrix.os.name }} |
82 |
| - OS_VERSION: ${{ matrix.os.version }} |
83 |
| - PYTHON_VERSION: ${{ matrix.os.python }} |
84 |
| - ENGINE: ${{ matrix.os.engine }} |
85 |
| - ACTION: pylint |
| 60 | + - name: Run pylint on python${{ matrix.python-version }} |
| 61 | + run: python -m tox -e pylint |
86 | 62 |
|
87 | 63 | shellcheck:
|
88 | 64 | name: Shellcheck
|
|
94 | 70 |
|
95 | 71 | - name: Run ShellCheck
|
96 | 72 | uses: containerbuildsystem/actions/shellcheck@master
|
| 73 | + |
| 74 | +# mypy: |
| 75 | +# name: mypy type checker for Python ${{ matrix.python-version }} |
| 76 | +# runs-on: ubuntu-latest |
| 77 | +# |
| 78 | +# strategy: |
| 79 | +# matrix: |
| 80 | +# python-version: [ "3.8" ] |
| 81 | +# |
| 82 | +# steps: |
| 83 | +# - uses: actions/checkout@v3 |
| 84 | +# - uses: actions/setup-python@v4 |
| 85 | +# with: |
| 86 | +# python-version: ${{ matrix.python-version }} |
| 87 | +# - name: Install dependencies |
| 88 | +# run: | |
| 89 | +# python -m pip install --upgrade pip setuptools tox |
| 90 | +# |
| 91 | +# - name: Run mypy on python${{ matrix.python-version }} |
| 92 | +# run: python -m tox -e mypy |
| 93 | + |
| 94 | + bandit: |
| 95 | + name: Bandit analyzer for Python ${{ matrix.python-version }} |
| 96 | + runs-on: ubuntu-latest |
| 97 | + |
| 98 | + strategy: |
| 99 | + matrix: |
| 100 | + python-version: [ "3.8" ] |
| 101 | + |
| 102 | + steps: |
| 103 | + - uses: actions/checkout@v1 |
| 104 | + - uses: actions/setup-python@v4 |
| 105 | + with: |
| 106 | + python-version: ${{ matrix.python-version }} |
| 107 | + - name: Install dependencies |
| 108 | + run: | |
| 109 | + python -m pip install --upgrade pip setuptools tox |
| 110 | +
|
| 111 | + - name: Run bandit analyzer on python${{ matrix.python-version }} |
| 112 | + run: python -m tox -e bandit |
0 commit comments