Skip to content

Commit ffdcce6

Browse files
authored
Merge pull request #10927 from RonnyPfannschmidt/pypi-json-for-plugin-list
update-plugin-list: use json, use http caching, use gh action caches
2 parents 1de0923 + 1ded747 commit ffdcce6

File tree

3 files changed

+135
-42
lines changed

3 files changed

+135
-42
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,20 @@ jobs:
2727
- name: Setup Python
2828
uses: actions/setup-python@v4
2929
with:
30-
python-version: 3.8
30+
python-version: "3.8"
31+
cache: pip
32+
- name: requests-cache
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.cache/pytest-plugin-list/
36+
key: plugins-http-cache-${{ github.run_id }} # Can use time based key as well
37+
restore-keys: plugins-http-cache-
3138

3239
- name: Install dependencies
3340
run: |
3441
python -m pip install --upgrade pip
35-
pip install packaging requests tabulate[widechars] tqdm
42+
pip install packaging requests tabulate[widechars] tqdm requests-cache platformdirs
43+
3644
3745
- name: Update Plugin List
3846
run: python scripts/update-plugin-list.py

0 commit comments

Comments
 (0)