Skip to content

Commit

Permalink
Add automatic dependency checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtl1979 committed Nov 5, 2023
1 parent 85a4eb2 commit e0d9142
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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@v4
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: emZubair/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
pr-branch: "master"
update-command: "'pipenv update && tox -e py38'"

0 comments on commit e0d9142

Please sign in to comment.