* Add a workflow to update dependencies * Use '--no-docker' to run dependency update using local pythons Default method is to use docker * Only run the dependency update workflow manually PR are only created for master * Create constraints for all python versions * Use manylinux2010_x86_64:latest to update dependencies Co-authored-by: Joe Rickerby <joerick@mac.com>
32 lines
959 B
YAML
32 lines
959 B
YAML
name: Update dependencies
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
update-dependencies:
|
|
name: Update dependencies
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
name: Install Python 3.9
|
|
with:
|
|
python-version: 3.9
|
|
architecture: x64
|
|
- name: Install dependencies
|
|
run: python -m pip install requests pip-tools
|
|
- name: Run update
|
|
run: python ./bin/update_dependencies.py
|
|
- name: Create Pull Request
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
commit-message: Update dependencies
|
|
title: '[Bot] Update dependencies'
|
|
body: |
|
|
Update the versions of our dependencies.
|
|
|
|
PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
|
|
branch: update-dependencies-pr
|
|
delete-branch: true
|