-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
- Loading branch information
Showing
7 changed files
with
183 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[run] | ||
omit = /tmp/* | ||
relative_files = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Lint with flake8 | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
flake8: | ||
name: Flake8 for Python ${{ matrix.os.python }} on ${{ matrix.os.name }}-${{ matrix.os.version }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- name: centos | ||
version: 7 | ||
python: 2 | ||
engine: docker | ||
|
||
- name: fedora | ||
version: 31 | ||
python: 3 | ||
engine: docker | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@master | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: ${{ matrix.os.python }} | ||
|
||
- name: Install Python dependencies | ||
run: pip install flake8 | ||
|
||
- name: Run flake8 | ||
uses: samuelmeuli/lint-action@master | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
flake8: true | ||
flake8_args: "--max-line-length=100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Shellcheck | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
shellcheck: | ||
name: Shellcheck | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@master | ||
|
||
- name: Run ShellCheck | ||
uses: ludeeus/action-shellcheck@master | ||
env: | ||
SHELLCHECK_OPTS: -Calways |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
name: Run tests using test.sh | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Python ${{ matrix.os.python }} tests on ${{ matrix.os.name }}-${{ matrix.os.version }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- name: centos | ||
version: 7 | ||
python: 2 | ||
engine: docker | ||
|
||
- name: fedora | ||
version: 30 | ||
python: 3 | ||
engine: docker | ||
|
||
- name: fedora | ||
version: 31 | ||
python: 3 | ||
engine: docker | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@master | ||
|
||
- name: test.sh | ||
env: | ||
OS: ${{ matrix.os.name }} | ||
OS_VERSION: ${{ matrix.os.version }} | ||
PYTHON_VERSION: ${{ matrix.os.python }} | ||
ENGINE: ${{ matrix.os.engine }} | ||
run: ./test.sh | ||
|
||
- name: Coveralls Python parallel | ||
uses: AndreMiras/coveralls-python-action@master | ||
with: | ||
parallel: true | ||
|
||
coveralls_finish: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Python finish | ||
uses: AndreMiras/coveralls-python-action@master | ||
with: | ||
parallel-finished: true | ||
|
||
pylint: | ||
name: Pylint analyzer for Python ${{ matrix.os.python }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- name: fedora | ||
version: 29 | ||
python: 2 | ||
engine: docker | ||
|
||
- name: fedora | ||
version: 31 | ||
python: 3 | ||
engine: docker | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- run: ./test.sh | ||
env: | ||
OS: ${{ matrix.os.name }} | ||
OS_VERSION: ${{ matrix.os.version }} | ||
PYTHON_VERSION: ${{ matrix.os.python }} | ||
ENGINE: ${{ matrix.os.engine }} | ||
ACTION: pylint | ||
|
||
bandit: | ||
name: Bandit analyzer for Python ${{ matrix.os.python }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- name: centos | ||
version: 7 | ||
python: 2 | ||
engine: docker | ||
|
||
- name: fedora | ||
version: 31 | ||
python: 3 | ||
engine: docker | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- run: ./test.sh | ||
env: | ||
OS: ${{ matrix.os.name }} | ||
OS_VERSION: ${{ matrix.os.version }} | ||
PYTHON_VERSION: ${{ matrix.os.python }} | ||
ENGINE: ${{ matrix.os.engine }} | ||
ACTION: bandit | ||
|
||
markdownlint: | ||
name: markdownlint analyzer | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- run: ./test.sh | ||
env: | ||
ENGINE: docker | ||
ACTION: markdownlint |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters