2021-01-29 22:19:54 +08:00
|
|
|
name: Update Plugin List
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-02-05 10:14:08 +08:00
|
|
|
# At 00:00 on Sunday.
|
|
|
|
# https://crontab.guru
|
|
|
|
- cron: '0 0 * * 0'
|
2021-01-29 22:19:54 +08:00
|
|
|
workflow_dispatch:
|
|
|
|
|
2021-05-16 16:17:05 +08:00
|
|
|
# Set permissions at the job level.
|
|
|
|
permissions: {}
|
|
|
|
|
2021-01-29 22:19:54 +08:00
|
|
|
jobs:
|
2022-12-22 00:55:58 +08:00
|
|
|
update-plugin-list:
|
2022-02-11 20:03:22 +08:00
|
|
|
if: github.repository_owner == 'pytest-dev'
|
2021-01-29 22:19:54 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-16 16:17:05 +08:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
|
|
|
|
2021-01-29 22:19:54 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-11 17:50:08 +08:00
|
|
|
uses: actions/checkout@v4
|
2021-05-16 16:17:05 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2021-01-29 22:19:54 +08:00
|
|
|
- name: Setup Python
|
2023-12-11 16:46:13 +08:00
|
|
|
uses: actions/setup-python@v5
|
2021-01-29 22:19:54 +08:00
|
|
|
with:
|
2023-08-21 20:29:41 +08:00
|
|
|
python-version: "3.11"
|
2023-04-24 23:12:25 +08:00
|
|
|
cache: pip
|
|
|
|
- name: requests-cache
|
2024-01-22 21:11:09 +08:00
|
|
|
uses: actions/cache@v4
|
2023-04-24 23:12:25 +08:00
|
|
|
with:
|
|
|
|
path: ~/.cache/pytest-plugin-list/
|
|
|
|
key: plugins-http-cache-${{ github.run_id }} # Can use time based key as well
|
|
|
|
restore-keys: plugins-http-cache-
|
2021-05-16 16:17:05 +08:00
|
|
|
|
2021-01-29 22:19:54 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2023-04-24 23:12:25 +08:00
|
|
|
pip install packaging requests tabulate[widechars] tqdm requests-cache platformdirs
|
|
|
|
|
2021-05-16 16:17:05 +08:00
|
|
|
|
2021-01-29 22:19:54 +08:00
|
|
|
- name: Update Plugin List
|
|
|
|
run: python scripts/update-plugin-list.py
|
2021-05-16 16:17:05 +08:00
|
|
|
|
2021-01-29 22:19:54 +08:00
|
|
|
- name: Create Pull Request
|
2023-06-20 06:22:49 +08:00
|
|
|
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
|
2021-01-29 22:19:54 +08:00
|
|
|
with:
|
|
|
|
commit-message: '[automated] Update plugin list'
|
2021-01-30 19:01:41 +08:00
|
|
|
author: 'pytest bot <pytestbot@users.noreply.github.com>'
|
2021-01-29 22:19:54 +08:00
|
|
|
branch: update-plugin-list/patch
|
|
|
|
delete-branch: true
|
|
|
|
branch-suffix: short-commit-hash
|
|
|
|
title: '[automated] Update plugin list'
|
|
|
|
body: '[automated] Update plugin list'
|