-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.72 KB
/
minimum_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
42
43
44
45
46
name: Minimum Dependency Checker
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'pyproject.toml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Run min dep generator - test reqs
id: min_dep_gen_test
uses: alteryx/minimum-dependency-generator@v3
with:
paths: 'pyproject.toml'
options: 'dependencies'
extras_require: 'test'
output_filepath: premium_primitives/tests/requirement_files/minimum_test_requirements.txt
- name: Run min dep generator - core reqs
id: min_dep_gen_core
uses: alteryx/minimum-dependency-generator@v3
with:
paths: 'pyproject.toml'
options: 'dependencies'
output_filepath: premium_primitives/tests/requirement_files/minimum_core_requirements.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
commit-message: Update minimum dependencies
title: Automated Minimum Dependency Updates
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
body: "This is an auto-generated PR with **minimum** dependency updates.
Please do not delete the `min-dep-update` branch because it's needed by the auto-dependency bot."
branch: min-dep-update
branch-suffix: short-commit-hash
base: main
assignees: machineFL
reviewers: machineAYX