Auto update Python dependencies #70
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: Auto update Python dependencies | |
on: | |
schedule: | |
# runs weekly at 00:00 on Mondays | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
auto-update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the head commit of the branch | |
uses: actions/checkout@v4 | |
with: | |
ref: master | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python3-pip tox | |
pip install --upgrade pip | |
pip install pipenv | |
- name: Run auto dependency update | |
uses: mtl1979/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pr-branch: "master" | |
update-command: "'pipenv --python `which python3` update && tox -e py38'" |