Skip to content

Commit

Permalink
Merge pull request #60 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Add dependency workflow
  • Loading branch information
p-galligan authored Nov 27, 2024
2 parents a5c2c7b + 0b47698 commit 9fe4512
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: update dependencies
on:

schedule:
- cron: '0 0 1 * *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
ref: development
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip

- name: Install pre-commit and pip-tools
run: pip install pre-commit pip-tools

- name: Run pre-commit autoupdate
run: pre-commit autoupdate

- name: Update test requirements
run: pip-compile --upgrade test_requirements.in -o test_requirements.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.0.2
with:
token: ${{ steps.app-token.outputs.token }}
base: development
branch: dependency-updates
delete-branch: true
title: Dependency Updates
commit-message: Dependency updates
2 changes: 2 additions & 0 deletions test_requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage~=7.2
pytest~=8

0 comments on commit 9fe4512

Please sign in to comment.