File tree Expand file tree Collapse file tree 3 files changed +4
-42
lines changed Expand file tree Collapse file tree 3 files changed +4
-42
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,6 @@ concurrency:
22
22
permissions : read-all
23
23
24
24
jobs :
25
- get-python-versions :
26
- name : Get Python Versions (>= 3.9)
27
- runs-on : ubuntu-latest
28
- outputs :
29
- version-matrix : ${{ steps.get-language-versions.outputs.latest-versions }}
30
-
31
- steps :
32
- - name : Get Required Versions
33
- uses : ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3
34
- id : get-language-versions
35
- with :
36
- language : " python"
37
- min-version : 3.9
38
- remove-patch-version : true
39
-
40
25
shellcheck :
41
26
name : ShellCheck
42
27
runs-on : ubuntu-latest
@@ -48,34 +33,11 @@ jobs:
48
33
- name : Perform ShellCheck Analysis
49
34
run : bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/shellcheck/master/pipeline.sh)
50
35
51
- pur :
52
- name : Pur
53
- needs : get-python-versions
54
- runs-on : ubuntu-latest
55
-
56
- strategy :
57
- fail-fast : false
58
- matrix :
59
- python-versions : ${{ fromJson(needs.get-python-versions.outputs.version-matrix) }}
60
-
61
- steps :
62
- - name : Checkout the Repository
63
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
64
-
65
- - name : Setup Python ${{ matrix.python-versions }}
66
- uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
67
- with :
68
- python-version : ${{ matrix.python-versions }}
69
-
70
- - name : Perform Pur Analysis
71
- run : bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/pur/master/pipeline.sh)
72
-
73
36
cicd-pipeline :
74
37
if : always()
75
38
name : CI/CD Pipeline
76
39
needs :
77
40
- shellcheck
78
- - pur
79
41
runs-on : ubuntu-latest
80
42
81
43
steps :
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ message: If you use this software, please cite it using these metadata.
3
3
title : Pur
4
4
abstract : A tool to notify you of out of date requirements in requirements.txt.
5
5
type : software
6
- version : 0.1.0
7
- date-released : 2024-05-22
6
+ version : 0.1.1
7
+ date-released : 2024-06-24
8
8
repository-code : https://github.com/CICDToolbox/pur
9
9
keywords :
10
10
- " Wolf Software"
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ BANNER_NAME="${TEST_COMMAND[*]}"
47
47
FILE_TYPE_SEARCH_PATTERN=' No Magic String'
48
48
49
49
# File name to match [Regex based]
50
- FILE_NAME_SEARCH_PATTERN=' \requirements.txt$'
50
+ FILE_NAME_SEARCH_PATTERN=' \requirements* .txt$'
51
51
52
52
# Set where to look for files.
53
53
SCAN_ROOT=' .'
@@ -270,7 +270,7 @@ function install_prerequisites()
270
270
fail " ${CMD[*]} " " ${errors} " true
271
271
exit " ${EXIT_VALUE} "
272
272
fi
273
- done < <( find . -name ' requirements.txt' -type f -not -path " ./.git/*" | sed ' s|^./||' | sort -Vf || true)
273
+ done < <( find . -name ' requirements* .txt' -type f -not -path " ./.git/*" | sed ' s|^./||' | sort -Vf || true)
274
274
fi
275
275
}
276
276
You can’t perform that action at this time.
0 commit comments