Skip to content

Commit d565232

Browse files
committed
chore(ci): centralise all GitHub Actions pip deps into one lock file
Merge the three per-workflow requirements files (tclint, yaml-test, update-rules) into a single .github/requirements/requirements.in and a shared requirements_lock.txt. All CI workflows now install from one place, reducing lock-file sprawl and making dependency updates a single-file change. Signed-off-by: Jack Luar <jluar@precisioninno.com>
1 parent 20e45a0 commit d565232

10 files changed

Lines changed: 305 additions & 409 deletions
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
firebase-admin
2+
pyyaml
3+
tclint==0.7.0
4+
yamlfix==1.19.1

.github/requirements/update-rules_lock.txt renamed to .github/requirements/requirements_lock.txt

Lines changed: 297 additions & 3 deletions
Large diffs are not rendered by default.

.github/requirements/tclint.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/requirements/tclint_lock.txt

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/requirements/update-rules.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/requirements/yaml-test.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/requirements/yaml-test_lock.txt

Lines changed: 0 additions & 334 deletions
This file was deleted.

.github/workflows/github-actions-lint-tcl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Dependencies
2323
run: |
2424
python3 -m venv venv
25-
venv/bin/pip install -r .github/requirements/tclint_lock.txt
25+
venv/bin/pip install -r .github/requirements/requirements_lock.txt
2626
2727
- name: Lint
2828
run: |

.github/workflows/github-actions-update-rules.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Python Packages
2626
run: |
2727
python3 -m venv venv
28-
venv/bin/pip install -r .github/requirements/update-rules_lock.txt
28+
venv/bin/pip install -r .github/requirements/requirements_lock.txt
2929
- name: Execute Python Script Update
3030
env:
3131
CREDS_FILE: ${{ secrets.CREDS_FILE }}

.github/workflows/github-actions-yaml-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
flow/scripts/variables.json
2121
docs/user/FlowVariables.md
2222
yamlfix.toml
23-
.github/requirements/yaml-test_lock.txt
23+
.github/requirements/requirements_lock.txt
2424
- uses: actions/setup-python@v6
2525
with:
2626
python-version: "3.10"
2727
- name: Install dependencies
2828
run: |
2929
python3 -m venv venv
30-
venv/bin/pip install --quiet -r .github/requirements/yaml-test_lock.txt
30+
venv/bin/pip install --quiet -r .github/requirements/requirements_lock.txt
3131
- name: Run generate-variables-docs.py
3232
run: |
3333
venv/bin/python3 flow/scripts/generate-variables-docs.py

0 commit comments

Comments
 (0)