Skip to content

Commit c03e9dd

Browse files
committed
chore: adding fixture lockfile
1 parent cf878a7 commit c03e9dd

File tree

4 files changed

+46
-10
lines changed

4 files changed

+46
-10
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,45 @@ env:
1010
PYTHON_VERSION: '3.14'
1111

1212
jobs:
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:

actions/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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-
```

actions/update_actions/scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import 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

1212
def find_uses(obj) -> list[str]:

npm/test/package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)