diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index ee7ea0c..18534c5 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -22,21 +22,6 @@ concurrency: 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 @@ -48,34 +33,11 @@ jobs: - name: Perform ShellCheck Analysis run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/shellcheck/master/pipeline.sh) - pur: - name: Pur - 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - - name: Setup Python ${{ matrix.python-versions }} - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 - with: - python-version: ${{ matrix.python-versions }} - - - name: Perform Pur Analysis - run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/pur/master/pipeline.sh) - cicd-pipeline: if: always() name: CI/CD Pipeline needs: - shellcheck - - pur runs-on: ubuntu-latest steps: diff --git a/CITATION.cff b/CITATION.cff index 0f006ec..fb48c68 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -3,8 +3,8 @@ message: If you use this software, please cite it using these metadata. title: Pur abstract: A tool to notify you of out of date requirements in requirements.txt. type: software -version: 0.1.0 -date-released: 2024-05-22 +version: 0.1.1 +date-released: 2024-06-24 repository-code: https://github.com/CICDToolbox/pur keywords: - "Wolf Software" diff --git a/pipeline.sh b/pipeline.sh index e045a71..1128be7 100755 --- a/pipeline.sh +++ b/pipeline.sh @@ -47,7 +47,7 @@ BANNER_NAME="${TEST_COMMAND[*]}" FILE_TYPE_SEARCH_PATTERN='No Magic String' # File name to match [Regex based] -FILE_NAME_SEARCH_PATTERN='\requirements.txt$' +FILE_NAME_SEARCH_PATTERN='\requirements*.txt$' # Set where to look for files. SCAN_ROOT='.' @@ -270,7 +270,7 @@ function install_prerequisites() fail "${CMD[*]}" "${errors}" true exit "${EXIT_VALUE}" fi - done < <(find . -name 'requirements.txt' -type f -not -path "./.git/*" | sed 's|^./||' | sort -Vf || true) + done < <(find . -name 'requirements*.txt' -type f -not -path "./.git/*" | sed 's|^./||' | sort -Vf || true) fi }