Skip to content

Commit dfd796f

Browse files
committed
ci: move running update-plugin-list script to tox
We run all scripts through tox, that's debatable but consistency is more important.
1 parent 74e22f5 commit dfd796f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/update-plugin-list.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
uses: actions/setup-python@v6
3030
with:
3131
python-version: "3.11"
32-
cache: pip
3332

3433
- name: requests-cache
3534
uses: actions/cache@v4
@@ -38,13 +37,13 @@ jobs:
3837
key: plugins-http-cache-${{ github.run_id }} # Can use time based key as well
3938
restore-keys: plugins-http-cache-
4039

41-
- name: Install dependencies
40+
- name: Install tox
4241
run: |
4342
python -m pip install --upgrade pip
44-
pip install packaging requests tabulate[widechars] tqdm requests-cache platformdirs
43+
pip install --upgrade tox
4544
4645
- name: Update Plugin List
47-
run: python scripts/update-plugin-list.py
46+
run: tox -e update-plugin-list
4847

4948
- name: Create Pull Request
5049
id: pr

tox.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,15 @@ usedevelop = True
214214
deps =
215215
pypandoc_binary
216216
commands = python scripts/generate-gh-release-notes.py {posargs}
217+
218+
[testenv:update-plugin-list]
219+
description = update the plugin list
220+
skip_install = True
221+
deps =
222+
packaging
223+
requests
224+
tabulate[widechars]
225+
tqdm
226+
requests-cache
227+
platformdirs
228+
commands = python scripts/update-plugin-list.py {posargs}

0 commit comments

Comments
 (0)