Files
galaxy/.github/workflows/dependencies.yaml
T
Nicola Soranzo 20022b8e04 Install also Python 3.7 for update-lint-requirements
Follow-up on commit d604bffc5f .

Drop caching of pip directory for this workflow.
2023-09-02 21:59:32 +01:00

41 lines
1.3 KiB
YAML

name: Update dependencies
on:
schedule:
- cron: '0 3 * * 6' # Run every saturday at 3 am.
jobs:
update_dependencies:
name: Update dependencies
if: github.repository_owner == 'galaxyproject'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
# poetry requires Python >=3.8, but lint requirements currently need
# to be generated with `pip freeze`` on the oldest Python version
# supported by Galaxy.
python-version: |
${{ matrix.python-version }}
3.8
- name: Update dependencies
run: |
python -m venv .venv
make update-dependencies
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
author: galaxybot <galaxybot@users.noreply.github.com>
token: ${{ secrets.GALAXYBOT_PAT }}
commit-message: Update Python dependencies
branch: dev_auto_update_dependencies
delete-branch: true
push-to-fork: galaxybot/galaxy
title: Update Python dependencies
body: Run `make update-dependencies`.
labels: |
area/dependencies
kind/enhancement