-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.56 KB
/
latest_dependency_checker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow will install dependenies and if any critical dependencies have changed a pull request
# will be created which will trigger a CI run with the new dependencies.
name: Latest Dependency Checker
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Update dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
make checkdeps OUTPUT_PATH=premium_primitives/tests/requirement_files/latest_requirements.txt
make lint-fix
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
commit-message: Update latest dependencies
title: Automated Latest Dependency Updates
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
body: "This is an auto-generated PR with **latest** dependency updates.
Please do not delete the `latest-dep-update` branch because it's needed by the auto-dependency bot."
branch: latest-dep-update
branch-suffix: short-commit-hash
base: main
reviewers: machineAYX
assignees: machineFL