chore: bump ruby/setup-ruby from 1.196.0 to 1.197.0 #117
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: CI/CD Pipeline | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.cff' | |
pull_request: | |
branches: | |
- '**' | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.cff' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: read-all | |
jobs: | |
get-python-versions: | |
name: Get Python Versions (>= 3.9) | |
runs-on: ubuntu-latest | |
outputs: | |
version-matrix: ${{ steps.get-language-versions.outputs.latest-versions }} | |
steps: | |
- name: Get Required Versions | |
uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3 | |
id: get-language-versions | |
with: | |
language: "python" | |
min-version: 3.9 | |
remove-patch-version: true | |
shellcheck: | |
name: ShellCheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Perform ShellCheck Analysis | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/shellcheck/master/pipeline.sh) | |
bandit: | |
name: Bandit | |
needs: get-python-versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-versions: ${{ fromJson(needs.get-python-versions.outputs.version-matrix) }} | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Perform Bandit Analysis | |
env: | |
EXCLUDE_FILES: README.md | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/bandit/master/pipeline.sh) | |
pycodestyle: | |
name: Pycodestyle | |
needs: get-python-versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-versions: ${{ fromJson(needs.get-python-versions.outputs.version-matrix) }} | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Perform Pycodestyle Analysis | |
env: | |
EXCLUDE_FILES: README.md | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/pycodestyle/master/pipeline.sh) | |
pydocstyle: | |
name: Pydocstyle | |
needs: get-python-versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-versions: ${{ fromJson(needs.get-python-versions.outputs.version-matrix) }} | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Perform Pydocstyle Analysis | |
env: | |
EXCLUDE_FILES: README.md | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/pydocstyle/master/pipeline.sh) | |
pylama: | |
name: Pylama | |
needs: get-python-versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-versions: ${{ fromJson(needs.get-python-versions.outputs.version-matrix) }} | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Perform Pylama Analysis | |
env: | |
EXCLUDE_FILES: README.md | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/pylama/master/pipeline.sh) | |
pylint: | |
name: Pylint | |
needs: get-python-versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-versions: ${{ fromJson(needs.get-python-versions.outputs.version-matrix) }} | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Perform Pylint Analysis | |
env: | |
EXCLUDE_FILES: README.md | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/pylint/master/pipeline.sh) | |
pytest: | |
name: Pytest | |
needs: get-python-versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-versions: ${{ fromJson(needs.get-python-versions.outputs.version-matrix) }} | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Upgrade Pip | |
run: python -m pip install --upgrade pip | |
- name: Install Build Tools | |
run: pip install setuptools wheel | |
- name: Build the Package | |
run: python setup.py sdist bdist_wheel | |
- name: Install the Package | |
run: pip install dist/*.whl | |
- name: Install Pytest | |
run: pip install pytest pytest-mock | |
- name: Run Pytest | |
run: pytest --no-header -vv | |
cicd-pipeline: | |
if: always() | |
name: CI/CD Pipeline | |
needs: | |
- shellcheck | |
- bandit | |
- pycodestyle | |
- pydocstyle | |
- pylama | |
- pylint | |
- pytest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Check Job Statuses | |
run: .github/scripts/check-jobs.sh '${{ toJson(needs) }}' |