Support both cachi2 and cachito #3045
Workflow file for this run
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
name: Linters | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- release_* | |
jobs: | |
bandit: | |
name: Bandit analyzer for Python ${{ matrix.os.python }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- name: fedora | |
version: 35 | |
python: 3 | |
engine: docker | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: ./test.sh | |
env: | |
OS: ${{ matrix.os.name }} | |
OS_VERSION: ${{ matrix.os.version }} | |
PYTHON_VERSION: ${{ matrix.os.python }} | |
ENGINE: ${{ matrix.os.engine }} | |
ACTION: bandit | |
flake8: | |
name: Flake8 for Python 3 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Run flake8 for Python 3 | |
uses: containerbuildsystem/actions/flake8@master | |
markdownlint: | |
name: Markdownlint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Run markdownlint | |
uses: DavidAnson/markdownlint-cli2-action@v16 | |
mypy: | |
name: mypy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Run mypy | |
uses: containerbuildsystem/actions/mypy@master | |
with: | |
package: 'atomic_reactor' | |
pylint: | |
name: Pylint analyzer for Python ${{ matrix.os.python }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: | |
- name: fedora | |
version: 35 | |
python: 3 | |
engine: docker | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./test.sh | |
env: | |
OS: ${{ matrix.os.name }} | |
OS_VERSION: ${{ matrix.os.version }} | |
PYTHON_VERSION: ${{ matrix.os.python }} | |
ENGINE: ${{ matrix.os.engine }} | |
ACTION: pylint | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run ShellCheck | |
uses: containerbuildsystem/actions/shellcheck@master | |
# ShellCheck for tekton | |
- name: Run Checkton | |
id: checkton | |
uses: chmeliik/[email protected] | |
with: | |
fail-on-findings: false | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: ${{ steps.checkton.outputs.sarif }} | |
# Avoid clashing with ShellCheck | |
category: checkton | |
tekton-lint: | |
name: tekton-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Run tekton-lint | |
uses: containerbuildsystem/actions/tekton-lint@master | |
with: | |
path: 'tekton/**/*.yaml' |