Skip to content

Update Python dependencies #760

Update Python dependencies

Update Python dependencies #760

name: Update Python dependencies
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
jobs:
update-dep:
runs-on: ubuntu-latest
strategy:
matrix:
python-versions: ["3.12"]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
with:
python-version: ${{ matrix.python-versions }}
- name: Install prerequisites
run: |
pip install tox pipenv
- name: Update dependencies
run: |
pipenv update -d
make requirements
git diff requirements*.txt
- name: Run tests
run: |
make tests
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "build: Update Python dependencies"
branch: "rstuf-bot/update-python-dependencies"
delete-branch: true
title: "build: Update Python dependencies"
body: >
The following PR updates the Python dependencies and generates new pipfile and requirements file.
labels: report, automated pr, python