Requirements Update #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Requirements Update | |
on: | |
schedule: | |
- cron: '0 12 * * 1' # runs at 12:00 UTC on Mondays | |
workflow_dispatch: | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v4 | |
with: | |
only-labels: dependencies,automated pr | |
stale-pr-message: 'This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 7 days.' | |
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' | |
days-before-pr-stale: 7 | |
days-before-pr-close: 7 | |
delete-branch: true | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: development | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dev Python packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r dev-requirements.txt | |
- name: Check for pip-tools upgrades | |
run: | | |
pip-compile --generate-hashes \ | |
--allow-unsafe \ | |
--upgrade \ | |
--output-file requirements.txt requirements.in | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
base: development | |
branch: requirements-updates | |
branch-suffix: timestamp | |
delete-branch: true | |
commit-message: "fix(requirements): Updated Python requirements" | |
title: 'Python Requirements Updates' | |
body: > | |
This PR is auto-generated by Github Actions job [requirements-update]. | |
labels: dependencies, automated pr |