File tree Expand file tree Collapse file tree 4 files changed +46
-10
lines changed
Expand file tree Collapse file tree 4 files changed +46
-10
lines changed Original file line number Diff line number Diff line change 1010 PYTHON_VERSION : ' 3.14'
1111
1212jobs :
13- python-unit-tests :
14- name : Python Unit Tests
13+ python-unit-tests-actions :
14+ name : Python Unit Tests (GitHub Actions)
1515 runs-on : ubuntu-latest
1616 steps :
1717 - &checkout-code
1818 name : Checkout code
1919 uses : actions/checkout@v5
2020
21- - name : Setup Python
21+ - &setup-python
22+ name : Setup Python
2223 uses : actions/setup-python@v5
2324 with :
2425 python-version : ${{ env.PYTHON_VERSION }}
2526
2627 - name : Install dependencies
28+ working-directory : actions
29+ run : |
30+ python -m pip install --upgrade pip
31+ pip install -r requirements.txt
32+
33+ - name : Run unit tests
34+ working-directory : actions/update_actions
35+ run : python -m unittest discover -s . -p "test_*.py" -v
36+
37+ python-unit-tests-terraform :
38+ name : Python Unit Tests
39+ runs-on : ubuntu-latest
40+ steps :
41+ - *checkout-code
42+ - *setup-python
43+
44+ - name : Install dependencies
45+ working-directory : terraform/scripts
2746 run : |
2847 python -m pip install --upgrade pip
29- pip install -r actions/ requirements.txt
48+ pip install -r requirements.txt
3049
3150 - name : Run unit tests
51+ working-directory : terraform/scripts
3252 run : python -m unittest discover -s . -p "test_*.py" -v
3353
3454 test-actions :
Original file line number Diff line number Diff line change @@ -53,8 +53,3 @@ python cli.py --root /path/to/repo --file-glob '.github/**/*.yml' --prefixes 'ac
5353- The action requires write permissions to create branches and pull requests
5454- GitHub CLI must be available in the runner environment
5555
56- ## :test_tube : Tests
57-
58- ``` bash
59- python -m unittest discover -s tests
60- ```
Original file line number Diff line number Diff line change 66
77import yaml
88
9- USES_PATTERN = re .compile (r"(^\s*-?\s* uses:\s*)([^@\s]+)@([^\s#]+)" , re .MULTILINE )
9+ USES_PATTERN = re .compile (r"(^\s*uses:\s*)([^@\s]+)@([^\s#]+)" , re .MULTILINE )
1010
1111
1212def find_uses (obj ) -> list [str ]:
You can’t perform that action at this time.
0 commit comments