Skip to content

Update Python dependencies #776

Update Python dependencies

Update Python dependencies #776

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@f677139bbe7f9c59b41e40162b753c062f5d49a3
with:
python-version: ${{ matrix.python-versions }}
- name: Install prerequisites
run: |
pip install tox pipenv
- name: Update dependencies
run: |
pipenv update -d
make requirements
- 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