Auto update Python dependencies #64
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 setuptools wheel | |
pip install pipenv | |
- name: Run auto dependency update | |
uses: mtl1979/dependencies-autoupdate@v1.2.3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pr-branch: "master" | |
update-command: "'pipenv --python `which python3` update && tox -e py38'" |