-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (42 loc) · 1.77 KB
/
check-python-dependcies.yml
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
name: Check for Python egg updates
on:
push:
branches:
- 'master'
paths:
- '.github/workflows/check-python-dependcies.yml'
- 'tests/build-test-env.sh'
- 'tests/run-update-checks.sh'
schedule:
- cron: 5 7 * * WED
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: 'x64'
- name: Check for package updates
run: |
pip3 install -U pip
pip3 -V
sudo apt-get install -y python3-wheel-whl
pip3 install pip-tools
pip-compile --resolver=backtracking --generate-hashes --reuse-hashes --upgrade --output-file requirements/requirements.txt requirements/requirements.in
pip-compile --resolver=backtracking --generate-hashes --reuse-hashes --upgrade --output-file requirements/test.txt requirements/test.in
pip-compile --resolver=backtracking --generate-hashes --reuse-hashes --upgrade --output-file requirements/dev.txt requirements/dev.in
- name: git status output
run: |
git status
- name: Create Pull Request where required
uses: peter-evans/create-pull-request@v6
with:
branch: python-package-updates
title: Pending python dependency updates
commit-message: "Automated pip-tools & GitHub Action generated python dependency updates"
body: "Automated python dependency updates by pip-tools and [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action"
assignees: asset-web
# TMMA-465 Workaround bug triggering follow on workflows, ref: https://github.com/peter-evans/create-pull-request/blob/v5/docs/concepts-guidelines.md#triggering-further-workflow-runs