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 automated dependency update workflow #129

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
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
45 changes: 45 additions & 0 deletions .github/workflows/compile_requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Compile Requirements

on:
push:
branches:
- main

jobs:
compile-requirements:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
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: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "GHA: Update dependencies"
title: Update dependencies
body: |
- Dependency updates

Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request
branch: update-dependencies
labels: automated-pr
delete-branch: true
37 changes: 0 additions & 37 deletions .github/workflows/pip_compile.yml

This file was deleted.

Loading