Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to update requirements.txt #119

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/pip_compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pip compile and upgrade
on:
pull-request:
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
Loading