-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (33 loc) · 1.04 KB
/
pip_compile.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
name: Pip compile and upgrade
on:
pull-request:
branches:
- main
jobs:
upgrade-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout infrastructure
uses: actions/checkout@v4
with:
ref: main
repository: equinor/isar-robot
ssh-key: ${{ secrets.DeployKey }}
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install pip-tools
run: |
python -m pip install --upgrade pip
pip install pip-tools
- name: Upgrade dependencies and compile requirements file
run: |
pip-compile --output-file=requirements.txt pyproject.toml --upgrade
- name: Checkout and commit
run: |
git config --global user.email "${EMAIL}"
git config --global user.name "GitHub Actions (${NAME})"
git add requirements.txt
git commit --message "GHA: Upgrade dependencies in requirements.txt"
git push